feat(GODT-2714): Set Configuration Status to Failure and send Recovery event when issue is solved.

This commit is contained in:
Romain LE JEUNE
2023-06-28 15:26:41 +02:00
parent fa4c0ec823
commit 720f662afe
9 changed files with 118 additions and 18 deletions

View File

@ -70,8 +70,11 @@ func (s *smtpSession) AuthPlain(username, password string) error {
"username": username,
"pkg": "smtp",
}).Error("Incorrect login credentials.")
return fmt.Errorf("invalid username or password")
err := fmt.Errorf("invalid username or password")
for _, user := range s.users {
user.ReportConfigStatusFailure(err.Error())
}
return err
}, s.usersLock)
}