From 60919831276e9c9e9900258bec82b6c31e9e5dd3 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 6 Jun 2019 15:39:11 +0200 Subject: Upgrade server dependencies --- server/controllers/api/users/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'server') diff --git a/server/controllers/api/users/index.ts b/server/controllers/api/users/index.ts index 2e03587ce..48a6c63b8 100644 --- a/server/controllers/api/users/index.ts +++ b/server/controllers/api/users/index.ts @@ -50,11 +50,14 @@ import { UserRegister } from '../../../../shared/models/users/user-register.mode const auditLogger = auditLoggerFactory('users') -const loginRateLimiter = new RateLimit({ +// FIXME: https://github.com/nfriedly/express-rate-limit/issues/138 +// @ts-ignore +const loginRateLimiter = RateLimit({ windowMs: RATES_LIMIT.LOGIN.WINDOW_MS, max: RATES_LIMIT.LOGIN.MAX }) +// @ts-ignore const askSendEmailLimiter = new RateLimit({ windowMs: RATES_LIMIT.ASK_SEND_EMAIL.WINDOW_MS, max: RATES_LIMIT.ASK_SEND_EMAIL.MAX -- cgit v1.2.3