aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.ts
diff options
context:
space:
mode:
authorNassim Bounouas <NassimBounouas@users.noreply.github.com>2019-12-18 09:59:00 +0100
committerChocobozzz <me@florianbigard.com>2019-12-18 09:59:00 +0100
commitf88ee4a9523bf3c4a61a45832963c558aed4d0b1 (patch)
tree02688f6dbb578376f870687a3119538b07b5996f /server/initializers/constants.ts
parentae05c9912555ef29e1fe14ba34ac9d8381547939 (diff)
downloadPeerTube-f88ee4a9523bf3c4a61a45832963c558aed4d0b1.tar.gz
PeerTube-f88ee4a9523bf3c4a61a45832963c558aed4d0b1.tar.zst
PeerTube-f88ee4a9523bf3c4a61a45832963c558aed4d0b1.zip
Feature/password reset link expiration (#2305)
* #1928 Add a sentence indicating the reset time limit on form and email * #1928 Customizable password reset lifetime * #1928 Add a route to verify reset link and call it on reset form init * Revert "#1928 Customizable password reset lifetime" This reverts commit 0ed97453f8e64e31a723cc6740b251a69a57d658. * #1928 Reset password lifetime hardcoded to one hour * Remove useless modifications for #1928
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r--server/initializers/constants.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index 7e2617653..79fcd0edf 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -486,7 +486,7 @@ let PRIVATE_RSA_KEY_SIZE = 2048
486// Password encryption 486// Password encryption
487const BCRYPT_SALT_SIZE = 10 487const BCRYPT_SALT_SIZE = 10
488 488
489const USER_PASSWORD_RESET_LIFETIME = 60000 * 5 // 5 minutes 489const USER_PASSWORD_RESET_LIFETIME = 60000 * 60 // 60 minutes
490 490
491const USER_EMAIL_VERIFY_LIFETIME = 60000 * 60 // 60 minutes 491const USER_EMAIL_VERIFY_LIFETIME = 60000 * 60 // 60 minutes
492 492