fix the corresponding bug for certfp authentication

This commit is contained in:
Shivaram Lingamneni 2020-06-17 03:08:38 -04:00
parent 9c26c45607
commit 91fa3b30b0
1 changed files with 1 additions and 3 deletions

View File

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