mirror of
https://github.com/jeremyd/ergo.git
synced 2026-06-11 23:33:31 -07:00
fix a bug in authscript fallback handling
This commit is contained in:
+1
-3
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user