diff options
author | Chocobozzz <me@florianbigard.com> | 2020-02-04 10:52:05 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-02-04 10:52:05 +0100 |
commit | 9a11f73392928c81d4a478191e126d3ec754f781 (patch) | |
tree | eea4d172970fc25d1d22ebe56e00c852466e484c /server/controllers/api/users/index.ts | |
parent | 7cd1b12c19d0589d1d692ed0571ca0800f028aea (diff) | |
download | PeerTube-9a11f73392928c81d4a478191e126d3ec754f781.tar.gz PeerTube-9a11f73392928c81d4a478191e126d3ec754f781.tar.zst PeerTube-9a11f73392928c81d4a478191e126d3ec754f781.zip |
Upgrade express-rate-limit
Diffstat (limited to 'server/controllers/api/users/index.ts')
-rw-r--r-- | server/controllers/api/users/index.ts | 2 |
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 | ||
54 | const auditLogger = auditLoggerFactory('users') | 54 | const auditLogger = auditLoggerFactory('users') |
55 | 55 | ||
56 | // FIXME: https://github.com/nfriedly/express-rate-limit/issues/138 | ||
57 | // @ts-ignore | ||
58 | const loginRateLimiter = RateLimit({ | 56 | const 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 |