mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-19 11:11:10 +01:00
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:
parent
a5dbb1fd59
commit
e62c7321c2
1 changed files with 6 additions and 0 deletions
|
@ -126,6 +126,12 @@ final class PhabricatorAuthRegisterController
|
||||||
$can_edit_anything = $profile->getCanEditAnything() || $must_set_password;
|
$can_edit_anything = $profile->getCanEditAnything() || $must_set_password;
|
||||||
$force_verify = $profile->getShouldVerifyEmail();
|
$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_username = $default_username;
|
||||||
$value_realname = $default_realname;
|
$value_realname = $default_realname;
|
||||||
$value_email = $default_email;
|
$value_email = $default_email;
|
||||||
|
|
Loading…
Reference in a new issue