aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-02-21 14:22:39 +0100
committerChocobozzz <me@florianbigard.com>2019-02-21 14:22:39 +0100
commit374c1db98cf22527f5b362c70d3c50e3be4c8885 (patch)
treea107347f66366128762669d88ba25b09e000ec14 /server/controllers/api
parenta975517c6858df07c179253a4c41701fd2199225 (diff)
downloadPeerTube-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.ts6
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
48const loginRateLimiter = new RateLimit({ 48const 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
54const askSendEmailLimiter = new RateLimit({ 53const 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
60const usersRouter = express.Router() 58const usersRouter = express.Router()