aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers/api')
-rw-r--r--server/controllers/api/users/index.ts6
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
48const loginRateLimiter = new RateLimit({ 48const 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
54const askSendEmailLimiter = new RateLimit({ 53const 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
60const usersRouter = express.Router() 58const usersRouter = express.Router()