From 5a68a4e2e42a3b44ce04b791997b30786eec7453 Mon Sep 17 00:00:00 2001 From: Shawn Kwang Date: Tue, 18 Sep 2018 13:11:14 -0500 Subject: [PATCH] Drupal: new accounts require email validation. Changed Drupal config so new accounts require email validation. After validating their account via a one-link link they choose a password. https://dev.gridrepublic.org/browse/DBOINCP-466 --- .../boinc_standard/boinc_standard.strongarm.inc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drupal/sites/all/features/boinc_standard/boinc_standard.strongarm.inc b/drupal/sites/all/features/boinc_standard/boinc_standard.strongarm.inc index c202f25baa..4bb81f0b49 100644 --- a/drupal/sites/all/features/boinc_standard/boinc_standard.strongarm.inc +++ b/drupal/sites/all/features/boinc_standard/boinc_standard.strongarm.inc @@ -1988,7 +1988,7 @@ function boinc_standard_strongarm() { $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ $strongarm->api_version = 1; $strongarm->name = 'user_email_verification'; - $strongarm->value = 0; + $strongarm->value = 1; $export['user_email_verification'] = $strongarm; $strongarm = new stdClass; @@ -2049,7 +2049,13 @@ After logging in, you will be redirected to !edit_uri so you can change your pas $strongarm->name = 'user_mail_register_no_approval_required_body'; $strongarm->value = 'Hello, -Thank you for registering at !site. You may now log in to !login_uri using your email address and your passphrase. +Thank you for registering at !site. You may now log in to !uri_brief by clicking on this link or copying and pasting it in your browser: + +!login_url + +This is a one-time login, so it can be used only once. It expires after one day and nothing will happen if it\'s not used. + +After logging in, you will be redirected to !edit_uri, where you can choose your password. -- !site team'; $export['user_mail_register_no_approval_required_body'] = $strongarm; @@ -2209,7 +2215,7 @@ Your account on !site has been deleted. $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ $strongarm->api_version = 1; $strongarm->name = 'user_register'; - $strongarm->value = '0'; + $strongarm->value = '1'; $export['user_register'] = $strongarm; $strongarm = new stdClass;