mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-11 05:06:51 +00:00
feat(GODT-2714): Set Configuration Status to Failure and send Recovery event when issue is solved.
This commit is contained in:
@ -514,7 +514,9 @@ func (user *User) CheckAuth(email string, password []byte) (string, error) {
|
||||
}
|
||||
|
||||
if subtle.ConstantTimeCompare(user.vault.BridgePass(), dec) != 1 {
|
||||
return "", fmt.Errorf("invalid password")
|
||||
err := fmt.Errorf("invalid password")
|
||||
user.ReportConfigStatusFailure(err.Error())
|
||||
return "", err
|
||||
}
|
||||
|
||||
return safe.RLockRetErr(func() (string, error) {
|
||||
|
||||
Reference in New Issue
Block a user