From d99b22f98b2261b6db6b378509aab158d19b9962 Mon Sep 17 00:00:00 2001 From: slawkens Date: Mon, 26 Aug 2024 15:19:37 +0200 Subject: [PATCH] Fix attempts counting --- system/src/RateLimit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/src/RateLimit.php b/system/src/RateLimit.php index 40fe4c90..fbb97369 100644 --- a/system/src/RateLimit.php +++ b/system/src/RateLimit.php @@ -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