diff --git a/src/guards/login-antispam.guard.ts b/src/guards/login-antispam.guard.ts index 48dfbc0..dff33d2 100644 --- a/src/guards/login-antispam.guard.ts +++ b/src/guards/login-antispam.guard.ts @@ -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;