diff options
author | Chocobozzz <me@florianbigard.com> | 2019-02-21 14:22:39 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-02-21 14:22:39 +0100 |
commit | 374c1db98cf22527f5b362c70d3c50e3be4c8885 (patch) | |
tree | a107347f66366128762669d88ba25b09e000ec14 /server/controllers/api | |
parent | a975517c6858df07c179253a4c41701fd2199225 (diff) | |
download | PeerTube-374c1db98cf22527f5b362c70d3c50e3be4c8885.tar.gz PeerTube-374c1db98cf22527f5b362c70d3c50e3be4c8885.tar.zst PeerTube-374c1db98cf22527f5b362c70d3c50e3be4c8885.zip |
Upgrade server dependencies
Diffstat (limited to 'server/controllers/api')
-rw-r--r-- | server/controllers/api/users/index.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/server/controllers/api/users/index.ts b/server/controllers/api/users/index.ts index e3533a7f6..407f32ac0 100644 --- a/server/controllers/api/users/index.ts +++ b/server/controllers/api/users/index.ts | |||
@@ -47,14 +47,12 @@ const auditLogger = auditLoggerFactory('users') | |||
47 | 47 | ||
48 | const loginRateLimiter = new RateLimit({ | 48 | const loginRateLimiter = new RateLimit({ |
49 | windowMs: RATES_LIMIT.LOGIN.WINDOW_MS, | 49 | windowMs: RATES_LIMIT.LOGIN.WINDOW_MS, |
50 | max: RATES_LIMIT.LOGIN.MAX, | 50 | max: RATES_LIMIT.LOGIN.MAX |
51 | delayMs: 0 | ||
52 | }) | 51 | }) |
53 | 52 | ||
54 | const askSendEmailLimiter = new RateLimit({ | 53 | const askSendEmailLimiter = new RateLimit({ |
55 | windowMs: RATES_LIMIT.ASK_SEND_EMAIL.WINDOW_MS, | 54 | windowMs: RATES_LIMIT.ASK_SEND_EMAIL.WINDOW_MS, |
56 | max: RATES_LIMIT.ASK_SEND_EMAIL.MAX, | 55 | max: RATES_LIMIT.ASK_SEND_EMAIL.MAX |
57 | delayMs: 0 | ||
58 | }) | 56 | }) |
59 | 57 | ||
60 | const usersRouter = express.Router() | 58 | const usersRouter = express.Router() |