aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.ts
diff options
context:
space:
mode:
authorJohn Livingston <38844060+JohnXLivingston@users.noreply.github.com>2020-02-17 10:16:52 +0100
committerGitHub <noreply@github.com>2020-02-17 10:16:52 +0100
commit45f1bd72a08998c60a9dd68ff069cea9de39161c (patch)
tree79e484bd7fd38fe97c84fdb00a164534f43941e9 /server/initializers/constants.ts
parentc5621bd23bce038671cd81149a0aa5e238558b67 (diff)
downloadPeerTube-45f1bd72a08998c60a9dd68ff069cea9de39161c.tar.gz
PeerTube-45f1bd72a08998c60a9dd68ff069cea9de39161c.tar.zst
PeerTube-45f1bd72a08998c60a9dd68ff069cea9de39161c.zip
Creating a user with an empty password will send an email to let him set his password (#2479)
* Creating a user with an empty password will send an email to let him set his password * Consideration of Chocobozzz's comments * Tips for optional password * API documentation * Fix circular imports * Tests
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r--server/initializers/constants.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index 311d371a7..3da06402c 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -502,6 +502,7 @@ let PRIVATE_RSA_KEY_SIZE = 2048
502const BCRYPT_SALT_SIZE = 10 502const BCRYPT_SALT_SIZE = 10
503 503
504const USER_PASSWORD_RESET_LIFETIME = 60000 * 60 // 60 minutes 504const USER_PASSWORD_RESET_LIFETIME = 60000 * 60 // 60 minutes
505const USER_PASSWORD_CREATE_LIFETIME = 60000 * 60 * 24 * 7 // 7 days
505 506
506const USER_EMAIL_VERIFY_LIFETIME = 60000 * 60 // 60 minutes 507const USER_EMAIL_VERIFY_LIFETIME = 60000 * 60 // 60 minutes
507 508
@@ -764,6 +765,7 @@ export {
764 LRU_CACHE, 765 LRU_CACHE,
765 JOB_REQUEST_TIMEOUT, 766 JOB_REQUEST_TIMEOUT,
766 USER_PASSWORD_RESET_LIFETIME, 767 USER_PASSWORD_RESET_LIFETIME,
768 USER_PASSWORD_CREATE_LIFETIME,
767 MEMOIZE_TTL, 769 MEMOIZE_TTL,
768 USER_EMAIL_VERIFY_LIFETIME, 770 USER_EMAIL_VERIFY_LIFETIME,
769 OVERVIEWS, 771 OVERVIEWS,