Automatically verify the setup account's email address
Summary: Although the defaults don't require a verified email address, it's easy to lock yourself out by accident by configuring `auth.require-email-verification` or `auth.email-domains` before setting up email. Just force-verify the initial/setup account's address. Test Plan: Went through setup on a fresh install, saw address verify. Reviewers: btrahan Reviewed By: btrahan CC: aran Differential Revision: https://secure.phabricator.com/D8365
This commit is contained in:
@@ -126,6 +126,12 @@ final class PhabricatorAuthRegisterController
|
||||
$can_edit_anything = $profile->getCanEditAnything() || $must_set_password;
|
||||
$force_verify = $profile->getShouldVerifyEmail();
|
||||
|
||||
// Automatically verify the administrator's email address during first-time
|
||||
// setup.
|
||||
if ($is_setup) {
|
||||
$force_verify = true;
|
||||
}
|
||||
|
||||
$value_username = $default_username;
|
||||
$value_realname = $default_realname;
|
||||
$value_email = $default_email;
|
||||
|
Reference in New Issue
Block a user