mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
Fix attempts counting
This commit is contained in:
parent
35e28350bd
commit
d99b22f98b
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user