3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-12-22 18:52:41 +01:00

don't log an error logline for an incorrect SASL password

This commit is contained in:
Shivaram Lingamneni 2019-01-02 10:29:42 -05:00
parent 2ee89b15b3
commit f20abf414f

View File

@ -667,7 +667,9 @@ func (am *AccountManager) checkPassphrase(accountName, passphrase string) (accou
case 0: case 0:
err = handleLegacyPasswordV0(am.server, accountName, account.Credentials, passphrase) err = handleLegacyPasswordV0(am.server, accountName, account.Credentials, passphrase)
case 1: case 1:
err = passwd.CompareHashAndPassword(account.Credentials.PassphraseHash, []byte(passphrase)) if passwd.CompareHashAndPassword(account.Credentials.PassphraseHash, []byte(passphrase)) != nil {
err = errAccountInvalidCredentials
}
default: default:
err = errAccountInvalidCredentials err = errAccountInvalidCredentials
} }