Skip rate limiting for whitelisted
parent
08394be35e
commit
a31939cb87
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue