Fix attempts counting

This commit is contained in:
slawkens 2024-08-26 15:19:37 +02:00
parent 35e28350bd
commit d99b22f98b

View File

@ -37,7 +37,7 @@ class RateLimit
return false; return false;
} }
return $this->attempts($ip) > $this->max_attempts; return $this->attempts($ip) >= $this->max_attempts;
} }
public function increment(string $ip): bool public function increment(string $ip): bool