Skip to content

Commit

Permalink
Fix attempts counting
Browse files Browse the repository at this point in the history
  • Loading branch information
slawkens committed Aug 26, 2024
1 parent 35e2835 commit d99b22f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/src/RateLimit.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function exceeded(string $ip): bool {
return false;
}

return $this->attempts($ip) > $this->max_attempts;
return $this->attempts($ip) >= $this->max_attempts;
}

public function increment(string $ip): bool
Expand Down

0 comments on commit d99b22f

Please sign in to comment.