diff --git a/internal/service/auth_service.go b/internal/service/auth_service.go index 8acbabe..e81e7c5 100644 --- a/internal/service/auth_service.go +++ b/internal/service/auth_service.go @@ -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()