a bit more lenient

This commit is contained in:
Evert Prants 2022-12-03 11:33:11 +02:00
parent f1ee066321
commit 64a675f36e
Signed by: evert
GPG Key ID: 1688DA83D222D0B5

View File

@ -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;