3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-11 06:29:29 +01:00

fix a bug in authscript fallback handling

This commit is contained in:
Shivaram Lingamneni 2020-06-17 02:19:25 -04:00
parent 70a6ea375c
commit 9c26c45607

View File

@ -1070,9 +1070,7 @@ func (am *AccountManager) AuthenticateByPassphrase(client *Client, accountName s
AuthScriptInput{AccountName: accountName, Passphrase: passphrase, IP: client.IP().String()})
if err != nil {
am.server.logger.Error("internal", "failed shell auth invocation", err.Error())
return err
}
if output.Success {
} else if output.Success {
if output.AccountName != "" {
accountName = output.AccountName
}