diff options
Diffstat (limited to 'server/controllers/api')
-rw-r--r-- | server/controllers/api/users/index.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/server/controllers/api/users/index.ts b/server/controllers/api/users/index.ts index e3533a7f6..407f32ac0 100644 --- a/server/controllers/api/users/index.ts +++ b/server/controllers/api/users/index.ts | |||
@@ -47,14 +47,12 @@ const auditLogger = auditLoggerFactory('users') | |||
47 | 47 | ||
48 | const loginRateLimiter = new RateLimit({ | 48 | const loginRateLimiter = new RateLimit({ |
49 | windowMs: RATES_LIMIT.LOGIN.WINDOW_MS, | 49 | windowMs: RATES_LIMIT.LOGIN.WINDOW_MS, |
50 | max: RATES_LIMIT.LOGIN.MAX, | 50 | max: RATES_LIMIT.LOGIN.MAX |
51 | delayMs: 0 | ||
52 | }) | 51 | }) |
53 | 52 | ||
54 | const askSendEmailLimiter = new RateLimit({ | 53 | const askSendEmailLimiter = new RateLimit({ |
55 | windowMs: RATES_LIMIT.ASK_SEND_EMAIL.WINDOW_MS, | 54 | windowMs: RATES_LIMIT.ASK_SEND_EMAIL.WINDOW_MS, |
56 | max: RATES_LIMIT.ASK_SEND_EMAIL.MAX, | 55 | max: RATES_LIMIT.ASK_SEND_EMAIL.MAX |
57 | delayMs: 0 | ||
58 | }) | 56 | }) |
59 | 57 | ||
60 | const usersRouter = express.Router() | 58 | const usersRouter = express.Router() |