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;
|
if (['GET', 'OPTIONS'].includes(request.method)) return true;
|
||||||
|
|
||||||
const known = this.iplimit.getAddressLimit(request.ip);
|
const known = this.iplimit.getAddressLimit(request.ip);
|
||||||
if (known && known.attempts >= 3) {
|
if (known && known.attempts > 3) {
|
||||||
if (known.attempts >= 5) {
|
if (known.attempts > 5) {
|
||||||
let reported = false;
|
let reported = false;
|
||||||
if (!known.reported) {
|
if (!known.reported) {
|
||||||
reported = true;
|
reported = true;
|
||||||
|
Reference in New Issue
Block a user