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:
baodev0
2026-10-22 22:37:23 +07:00
co-authored by Claude Opus 5.5
parent e34362b9bd
commit 7f41c27958
3 changed files with 15 additions and 8 deletions
-5
View File
@@ -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();
}
}