a bit more lenient
This commit is contained in:
parent
f1ee066321
commit
64a675f36e
@ -19,8 +19,8 @@ export class LoginAntispamGuard implements CanActivate {
|
||||
if (['GET', 'OPTIONS'].includes(request.method)) return true;
|
||||
|
||||
const known = this.iplimit.getAddressLimit(request.ip);
|
||||
if (known && known.attempts >= 3) {
|
||||
if (known.attempts >= 5) {
|
||||
if (known && known.attempts > 3) {
|
||||
if (known.attempts > 5) {
|
||||
let reported = false;
|
||||
if (!known.reported) {
|
||||
reported = true;
|
||||
|
Reference in New Issue
Block a user