mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2026-03-25 07:57:53 +00:00
fix: fix typo
This commit is contained in:
@@ -242,7 +242,7 @@ func (auth *AuthService) RecordLoginAttempt(identifier string, success bool) {
|
|||||||
defer auth.loginMutex.Unlock()
|
defer auth.loginMutex.Unlock()
|
||||||
|
|
||||||
if len(auth.loginAttempts) >= MaxLoginAttemptRecords {
|
if len(auth.loginAttempts) >= MaxLoginAttemptRecords {
|
||||||
if auth.lockdown != nil || !auth.lockdown.Active {
|
if auth.lockdown != nil && auth.lockdown.Active {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
go auth.lockdownMode()
|
go auth.lockdownMode()
|
||||||
|
|||||||
Reference in New Issue
Block a user