fix: fix typo

This commit is contained in:
Stavros
2026-03-23 16:15:40 +02:00
parent 6b0d804ba3
commit eb86fff0e4

View File

@@ -242,7 +242,7 @@ func (auth *AuthService) RecordLoginAttempt(identifier string, success bool) {
defer auth.loginMutex.Unlock()
if len(auth.loginAttempts) >= MaxLoginAttemptRecords {
if auth.lockdown != nil || !auth.lockdown.Active {
if auth.lockdown != nil && auth.lockdown.Active {
return
}
go auth.lockdownMode()