mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-22 10:42:52 +01:00
don't log an error logline for an incorrect SASL password
This commit is contained in:
parent
2ee89b15b3
commit
f20abf414f
@ -667,7 +667,9 @@ func (am *AccountManager) checkPassphrase(accountName, passphrase string) (accou
|
||||
case 0:
|
||||
err = handleLegacyPasswordV0(am.server, accountName, account.Credentials, passphrase)
|
||||
case 1:
|
||||
err = passwd.CompareHashAndPassword(account.Credentials.PassphraseHash, []byte(passphrase))
|
||||
if passwd.CompareHashAndPassword(account.Credentials.PassphraseHash, []byte(passphrase)) != nil {
|
||||
err = errAccountInvalidCredentials
|
||||
}
|
||||
default:
|
||||
err = errAccountInvalidCredentials
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user