diff options
author | Chocobozzz <me@florianbigard.com> | 2019-06-06 15:39:11 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-06-06 15:39:11 +0200 |
commit | 60919831276e9c9e9900258bec82b6c31e9e5dd3 (patch) | |
tree | 4c2396a9a8d0c4edfb07b14fab4207409520e9e1 /server/controllers/api | |
parent | ad3405d087b306efa5eb62a69c9b797b04eab4ce (diff) | |
download | PeerTube-60919831276e9c9e9900258bec82b6c31e9e5dd3.tar.gz PeerTube-60919831276e9c9e9900258bec82b6c31e9e5dd3.tar.zst PeerTube-60919831276e9c9e9900258bec82b6c31e9e5dd3.zip |
Upgrade server dependencies
Diffstat (limited to 'server/controllers/api')
-rw-r--r-- | server/controllers/api/users/index.ts | 5 |
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 | ||
51 | const auditLogger = auditLoggerFactory('users') | 51 | const auditLogger = auditLoggerFactory('users') |
52 | 52 | ||
53 | const loginRateLimiter = new RateLimit({ | 53 | // FIXME: https://github.com/nfriedly/express-rate-limit/issues/138 |
54 | // @ts-ignore | ||
55 | const 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 | ||
58 | const askSendEmailLimiter = new RateLimit({ | 61 | const 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 |