fix(auth): successful login no longer resets IP failure counter
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
e34362b9bd
commit
7f41c27958
@@ -45,9 +45,4 @@ class AdminLoginLockout
|
||||
{
|
||||
return max(0, self::MAX_FAILURES + 1 - $block->failed_attempts);
|
||||
}
|
||||
|
||||
public static function clear(string $ip): void
|
||||
{
|
||||
AdminLoginBlock::where('ip', $ip)->delete();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user