aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/users
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-02-04 10:52:05 +0100
committerChocobozzz <me@florianbigard.com>2020-02-04 10:52:05 +0100
commit9a11f73392928c81d4a478191e126d3ec754f781 (patch)
treeeea4d172970fc25d1d22ebe56e00c852466e484c /server/controllers/api/users
parent7cd1b12c19d0589d1d692ed0571ca0800f028aea (diff)
downloadPeerTube-9a11f73392928c81d4a478191e126d3ec754f781.tar.gz
PeerTube-9a11f73392928c81d4a478191e126d3ec754f781.tar.zst
PeerTube-9a11f73392928c81d4a478191e126d3ec754f781.zip
Upgrade express-rate-limit
Diffstat (limited to 'server/controllers/api/users')
-rw-r--r--server/controllers/api/users/index.ts2
1 files changed, 0 insertions, 2 deletions
diff --git a/server/controllers/api/users/index.ts b/server/controllers/api/users/index.ts
index b960e80c1..0b7012537 100644
--- a/server/controllers/api/users/index.ts
+++ b/server/controllers/api/users/index.ts
@@ -53,8 +53,6 @@ import { Hooks } from '@server/lib/plugins/hooks'
53 53
54const auditLogger = auditLoggerFactory('users') 54const auditLogger = auditLoggerFactory('users')
55 55
56// FIXME: https://github.com/nfriedly/express-rate-limit/issues/138
57// @ts-ignore
58const loginRateLimiter = RateLimit({ 56const loginRateLimiter = RateLimit({
59 windowMs: CONFIG.RATES_LIMIT.LOGIN.WINDOW_MS, 57 windowMs: CONFIG.RATES_LIMIT.LOGIN.WINDOW_MS,
60 max: CONFIG.RATES_LIMIT.LOGIN.MAX 58 max: CONFIG.RATES_LIMIT.LOGIN.MAX