refactor: use StatusAccountLocked for TOTP lockouts

This commit is contained in:
kolaente 2026-03-20 10:07:34 +01:00 committed by kolaente
parent f42a045bdc
commit 7792bf6cea
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ func HandleFailedTOTPAuth(s *xorm.Session, user *User) {
log.Errorf("Could send password information mail to user %d after 10 failed TOTP attempts: %s", user.ID, err)
return
}
err = user.SetStatus(s, StatusDisabled)
err = user.SetStatus(s, StatusAccountLocked)
if err != nil {
log.Errorf("Could not disable user %d: %s", user.ID, err)
}