mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
fix a bug in authscript fallback handling
This commit is contained in:
parent
70a6ea375c
commit
9c26c45607
1 changed files with 1 additions and 3 deletions
|
|
@ -1070,9 +1070,7 @@ func (am *AccountManager) AuthenticateByPassphrase(client *Client, accountName s
|
||||||
AuthScriptInput{AccountName: accountName, Passphrase: passphrase, IP: client.IP().String()})
|
AuthScriptInput{AccountName: accountName, Passphrase: passphrase, IP: client.IP().String()})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
am.server.logger.Error("internal", "failed shell auth invocation", err.Error())
|
am.server.logger.Error("internal", "failed shell auth invocation", err.Error())
|
||||||
return err
|
} else if output.Success {
|
||||||
}
|
|
||||||
if output.Success {
|
|
||||||
if output.AccountName != "" {
|
if output.AccountName != "" {
|
||||||
accountName = output.AccountName
|
accountName = output.AccountName
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue