From e62c7321c28baadc4467635d211072858f63737c Mon Sep 17 00:00:00 2001 From: epriestley Date: Thu, 27 Feb 2014 15:16:04 -0800 Subject: [PATCH] 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 --- .../auth/controller/PhabricatorAuthRegisterController.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/applications/auth/controller/PhabricatorAuthRegisterController.php b/src/applications/auth/controller/PhabricatorAuthRegisterController.php index 5cbffb40ae..5517aea786 100644 --- a/src/applications/auth/controller/PhabricatorAuthRegisterController.php +++ b/src/applications/auth/controller/PhabricatorAuthRegisterController.php @@ -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;