Parcourir la source

fix the corresponding bug for certfp authentication

tags/v2.2.0-rc1
Shivaram Lingamneni il y a 4 ans
Parent
révision
91fa3b30b0
1 fichiers modifiés avec 1 ajouts et 3 suppressions
  1. 1
    3
      irc/accounts.go

+ 1
- 3
irc/accounts.go Voir le fichier

@@ -1407,9 +1407,7 @@ func (am *AccountManager) AuthenticateByCertFP(client *Client, certfp, authzid s
1407 1407
 			AuthScriptInput{Certfp: certfp, IP: client.IP().String()})
1408 1408
 		if err != nil {
1409 1409
 			am.server.logger.Error("internal", "failed shell auth invocation", err.Error())
1410
-			return err
1411
-		}
1412
-		if output.Success && output.AccountName != "" {
1410
+		} else if output.Success && output.AccountName != "" {
1413 1411
 			clientAccount, err = am.loadWithAutocreation(output.AccountName, config.Accounts.AuthScript.Autocreate)
1414 1412
 			return
1415 1413
 		}

Chargement…
Annuler
Enregistrer