forked from Silverfish/proton-bridge
fix(GODT-2623): log IMAP/SMTP login failure as error.
This commit is contained in:
committed by
Romain Le Jeune
parent
a3e07428b5
commit
6adb440b84
@ -58,6 +58,11 @@ func (s *smtpSession) AuthPlain(username, password string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
logrus.WithFields(logrus.Fields{
|
||||
"username": username,
|
||||
"pkg": "smtp",
|
||||
}).Error("Incorrect login credentials.")
|
||||
|
||||
return fmt.Errorf("invalid username or password")
|
||||
}, s.usersLock)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user