1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-13 09:00:04 +00:00

chore: quick fix

This commit is contained in:
2023-03-29 23:22:32 +05:00
parent 462829fd9a
commit 570995e572
2 changed files with 9 additions and 4 deletions

View File

@@ -60,6 +60,11 @@ export class RateLimiter {
this.limiterConsecutiveFailsByUsernameAndIP.get(usernameIPkey)
])
// NOTE: To make use of blockDuration option from RateLimiterMongo
// comparison in both following if statements should have greater than symbol
// otherwise, blockDuration option will not work
// For more info see: https://github.com/animir/node-rate-limiter-flexible/wiki/Options#blockduration
// Check if IP or Username + IP is already blocked
if (
resSlowByIP !== null &&