mirror of
https://github.com/slawkens/myaac.git
synced 2025-11-28 14:16:50 +01:00
Fix attempts counting
This commit is contained in:
@@ -37,7 +37,7 @@ class RateLimit
|
||||
return false;
|
||||
}
|
||||
|
||||
return $this->attempts($ip) > $this->max_attempts;
|
||||
return $this->attempts($ip) >= $this->max_attempts;
|
||||
}
|
||||
|
||||
public function increment(string $ip): bool
|
||||
|
||||
Reference in New Issue
Block a user