Differential D9431 Diff 22523 src/applications/auth/controller/config/PhabricatorAuthEditController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/controller/config/PhabricatorAuthEditController.php
Show First 20 Lines • Show All 171 Lines • ▼ Show 20 Lines | public function processRequest() { | ||||
} | } | ||||
$config_name = 'auth.email-domains'; | $config_name = 'auth.email-domains'; | ||||
$config_href = '/config/edit/'.$config_name.'/'; | $config_href = '/config/edit/'.$config_name.'/'; | ||||
$email_domains = PhabricatorEnv::getEnvConfig($config_name); | $email_domains = PhabricatorEnv::getEnvConfig($config_name); | ||||
if ($email_domains) { | if ($email_domains) { | ||||
$registration_warning = pht( | $registration_warning = pht( | ||||
"Users will only be able to register with a verified email address ". | 'Users will only be able to register with a verified email address '. | ||||
"at one of the configured [[ %s | %s ]] domains: **%s**", | 'at one of the configured [[ %s | %s ]] domains: **%s**', | ||||
$config_href, | $config_href, | ||||
$config_name, | $config_name, | ||||
implode(', ', $email_domains)); | implode(', ', $email_domains)); | ||||
} else { | } else { | ||||
$registration_warning = pht( | $registration_warning = pht( | ||||
"NOTE: Any user who can browse to this install's login page will be ". | "NOTE: Any user who can browse to this install's login page will be ". | ||||
"able to register a Phabricator account. To restrict who can register ". | "able to register a Phabricator account. To restrict who can register ". | ||||
"an account, configure [[ %s | %s ]].", | "an account, configure [[ %s | %s ]].", | ||||
▲ Show 20 Lines • Show All 153 Lines • Show Last 20 Lines |