Compare commits
2 Commits
08394be35e
...
645e98cd6a
Author | SHA1 | Date |
---|---|---|
|
645e98cd6a | |
|
a31939cb87 |
|
@ -92,6 +92,11 @@ class RateLimiter {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function attempt($username, $ipAddress) {
|
public function attempt($username, $ipAddress) {
|
||||||
|
// Skip rate limiting for whitelisted IPs
|
||||||
|
if ($this->isIpWhitelisted($ipAddress)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
// Clean old attempts
|
// Clean old attempts
|
||||||
$this->clearOldAttempts();
|
$this->clearOldAttempts();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue