Skip to content

Commit eb86fff

Browse files
committed
fix: fix typo
1 parent 6b0d804 commit eb86fff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/service/auth_service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ func (auth *AuthService) RecordLoginAttempt(identifier string, success bool) {
242242
defer auth.loginMutex.Unlock()
243243

244244
if len(auth.loginAttempts) >= MaxLoginAttemptRecords {
245-
if auth.lockdown != nil || !auth.lockdown.Active {
245+
if auth.lockdown != nil && auth.lockdown.Active {
246246
return
247247
}
248248
go auth.lockdownMode()

0 commit comments

Comments
 (0)