Procházet zdrojové kódy

fix the corresponding bug for certfp authentication

tags/v2.2.0-rc1
Shivaram Lingamneni před 4 roky
rodič
revize
91fa3b30b0
1 změnil soubory, kde provedl 1 přidání a 3 odebrání
  1. 1
    3
      irc/accounts.go

+ 1
- 3
irc/accounts.go Zobrazit soubor

@@ -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
 		}

Načítá se…
Zrušit
Uložit