소스 검색

fix the corresponding bug for certfp authentication

tags/v2.2.0-rc1
Shivaram Lingamneni 4 년 전
부모
커밋
91fa3b30b0
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1
    3
      irc/accounts.go

+ 1
- 3
irc/accounts.go 파일 보기

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

Loading…
취소
저장