aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-06-06 15:39:11 +0200
committerChocobozzz <me@florianbigard.com>2019-06-06 15:39:11 +0200
commit60919831276e9c9e9900258bec82b6c31e9e5dd3 (patch)
tree4c2396a9a8d0c4edfb07b14fab4207409520e9e1 /server/controllers
parentad3405d087b306efa5eb62a69c9b797b04eab4ce (diff)
downloadPeerTube-60919831276e9c9e9900258bec82b6c31e9e5dd3.tar.gz
PeerTube-60919831276e9c9e9900258bec82b6c31e9e5dd3.tar.zst
PeerTube-60919831276e9c9e9900258bec82b6c31e9e5dd3.zip
Upgrade server dependencies
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/api/users/index.ts5
1 files changed, 4 insertions, 1 deletions
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
50 50
51const auditLogger = auditLoggerFactory('users') 51const auditLogger = auditLoggerFactory('users')
52 52
53const loginRateLimiter = new RateLimit({ 53// FIXME: https://github.com/nfriedly/express-rate-limit/issues/138
54// @ts-ignore
55const loginRateLimiter = RateLimit({
54 windowMs: RATES_LIMIT.LOGIN.WINDOW_MS, 56 windowMs: RATES_LIMIT.LOGIN.WINDOW_MS,
55 max: RATES_LIMIT.LOGIN.MAX 57 max: RATES_LIMIT.LOGIN.MAX
56}) 58})
57 59
60// @ts-ignore
58const askSendEmailLimiter = new RateLimit({ 61const askSendEmailLimiter = new RateLimit({
59 windowMs: RATES_LIMIT.ASK_SEND_EMAIL.WINDOW_MS, 62 windowMs: RATES_LIMIT.ASK_SEND_EMAIL.WINDOW_MS,
60 max: RATES_LIMIT.ASK_SEND_EMAIL.MAX 63 max: RATES_LIMIT.ASK_SEND_EMAIL.MAX