aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-08-31 11:44:07 +0200
committerChocobozzz <me@florianbigard.com>2018-08-31 11:44:44 +0200
commit288fe38590788fb737eb4280309846c76c51e7c3 (patch)
tree647f0df43657fd6ef04e91f107fd6f48ea82c9b4 /server/initializers
parent328e607d32d7f1e960f8966a70097b030e386ab4 (diff)
downloadPeerTube-288fe38590788fb737eb4280309846c76c51e7c3.tar.gz
PeerTube-288fe38590788fb737eb4280309846c76c51e7c3.tar.zst
PeerTube-288fe38590788fb737eb4280309846c76c51e7c3.zip
Use custom rate limiter when asking verif email
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/constants.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index 16d8dca68..536d99713 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -364,6 +364,10 @@ const RATES_LIMIT = {
364 LOGIN: { 364 LOGIN: {
365 WINDOW_MS: 5 * 60 * 1000, // 5 minutes 365 WINDOW_MS: 5 * 60 * 1000, // 5 minutes
366 MAX: 15 // 15 attempts 366 MAX: 15 // 15 attempts
367 },
368 ASK_SEND_EMAIL: {
369 WINDOW_MS: 5 * 60 * 1000, // 5 minutes
370 MAX: 3 // 3 attempts
367 } 371 }
368} 372}
369 373