aboutsummaryrefslogtreecommitdiffhomepage
path: root/config
diff options
context:
space:
mode:
authorJosh Morel <morel.josh@hotmail.com>2018-08-31 03:18:19 -0400
committerChocobozzz <me@florianbigard.com>2018-08-31 09:18:19 +0200
commitd9eaee3939bf2e93e5d775d32bce77842201faba (patch)
treec115acb3611986b98f51b3addf29ebe66f63ee7f /config
parent04291e1ba44032165388758e993d385a10c1c5a1 (diff)
downloadPeerTube-d9eaee3939bf2e93e5d775d32bce77842201faba.tar.gz
PeerTube-d9eaee3939bf2e93e5d775d32bce77842201faba.tar.zst
PeerTube-d9eaee3939bf2e93e5d775d32bce77842201faba.zip
add user account email verificiation (#977)
* add user account email verificiation includes server and client code to: * enable verificationRequired via custom config * send verification email with registration * ask for verification email * verify via email * prevent login if not verified and required * conditional client links to ask for new verification email * allow login for verified=null these are users created when verification not required should still be able to login when verification is enabled * refactor email verifcation pr * change naming from verified to emailVerified * change naming from askVerifyEmail to askSendVerifyEmail * undo unrelated automatic prettier formatting on api/config * use redirectService for home * remove redundant success notification on email verified * revert test.yaml smpt host
Diffstat (limited to 'config')
-rw-r--r--config/default.yaml1
-rw-r--r--config/production.yaml.example1
-rw-r--r--config/test.yaml1
3 files changed, 3 insertions, 0 deletions
diff --git a/config/default.yaml b/config/default.yaml
index 7799ea927..ef63fbd28 100644
--- a/config/default.yaml
+++ b/config/default.yaml
@@ -74,6 +74,7 @@ admin:
74signup: 74signup:
75 enabled: false 75 enabled: false
76 limit: 10 # When the limit is reached, registrations are disabled. -1 == unlimited 76 limit: 10 # When the limit is reached, registrations are disabled. -1 == unlimited
77 requires_email_verification: false
77 filters: 78 filters:
78 cidr: # You can specify CIDR ranges to whitelist (empty = no filtering) or blacklist 79 cidr: # You can specify CIDR ranges to whitelist (empty = no filtering) or blacklist
79 whitelist: [] 80 whitelist: []
diff --git a/config/production.yaml.example b/config/production.yaml.example
index 33a26dec1..f7b153698 100644
--- a/config/production.yaml.example
+++ b/config/production.yaml.example
@@ -87,6 +87,7 @@ admin:
87signup: 87signup:
88 enabled: false 88 enabled: false
89 limit: 10 # When the limit is reached, registrations are disabled. -1 == unlimited 89 limit: 10 # When the limit is reached, registrations are disabled. -1 == unlimited
90 requires_email_verification: false
90 filters: 91 filters:
91 cidr: # You can specify CIDR ranges to whitelist (empty = no filtering) or blacklist 92 cidr: # You can specify CIDR ranges to whitelist (empty = no filtering) or blacklist
92 whitelist: [] 93 whitelist: []
diff --git a/config/test.yaml b/config/test.yaml
index 879b6bdd4..6a8e47aac 100644
--- a/config/test.yaml
+++ b/config/test.yaml
@@ -29,6 +29,7 @@ cache:
29 29
30signup: 30signup:
31 enabled: true 31 enabled: true
32 requires_email_verification: false
32 33
33transcoding: 34transcoding:
34 enabled: true 35 enabled: true