Compare commits

...

2 Commits

Author SHA1 Message Date
Yasen Pramatarov 645e98cd6a Clear extra spaces 2024-12-10 15:56:58 +02:00
Yasen Pramatarov a31939cb87 Skip rate limiting for whitelisted 2024-12-10 15:56:18 +02:00
1 changed files with 14 additions and 9 deletions

View File

@ -92,6 +92,11 @@ class RateLimiter {
}
public function attempt($username, $ipAddress) {
// Skip rate limiting for whitelisted IPs
if ($this->isIpWhitelisted($ipAddress)) {
return true;
}
// Clean old attempts
$this->clearOldAttempts();