Differential D21778 Diff 51915 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 214 Lines • ▼ Show 20 Lines | if ($email_domains) { | ||||
'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 an account. To restrict who can register ". | ||||
"an account, configure [[ %s | %s ]].", | "an account, configure [[ %s | %s ]].", | ||||
$config_href, | $config_href, | ||||
$config_name); | $config_name); | ||||
} | } | ||||
$str_login = array( | $str_login = array( | ||||
phutil_tag('strong', array(), pht('Allow Login:')), | phutil_tag('strong', array(), pht('Allow Login:')), | ||||
' ', | ' ', | ||||
pht( | pht( | ||||
'Allow users to log in using this provider. If you disable login, '. | 'Allow users to log in using this provider. If you disable login, '. | ||||
'users can still use account integrations for this provider.'), | 'users can still use account integrations for this provider.'), | ||||
); | ); | ||||
$str_registration = array( | $str_registration = array( | ||||
phutil_tag('strong', array(), pht('Allow Registration:')), | phutil_tag('strong', array(), pht('Allow Registration:')), | ||||
' ', | ' ', | ||||
pht( | pht( | ||||
'Allow users to register new Phabricator accounts using this '. | 'Allow users to register new accounts using this provider. If you '. | ||||
'provider. If you disable registration, users can still use this '. | 'disable registration, users can still use this provider to log in '. | ||||
'provider to log in to existing accounts, but will not be able to '. | 'to existing accounts, but will not be able to create new accounts.'), | ||||
'create new accounts.'), | |||||
); | ); | ||||
$str_link = hsprintf( | $str_link = hsprintf( | ||||
'<strong>%s:</strong> %s', | '<strong>%s:</strong> %s', | ||||
pht('Allow Linking Accounts'), | pht('Allow Linking Accounts'), | ||||
pht( | pht( | ||||
'Allow users to link account credentials for this provider to '. | 'Allow users to link account credentials for this provider to '. | ||||
'existing Phabricator accounts. There is normally no reason to '. | 'existing accounts. There is normally no reason to disable this '. | ||||
'disable this unless you are trying to move away from a provider '. | 'unless you are trying to move away from a provider and want to '. | ||||
'and want to stop users from creating new account links.')); | 'stop users from creating new account links.')); | ||||
$str_unlink = hsprintf( | $str_unlink = hsprintf( | ||||
'<strong>%s:</strong> %s', | '<strong>%s:</strong> %s', | ||||
pht('Allow Unlinking Accounts'), | pht('Allow Unlinking Accounts'), | ||||
pht( | pht( | ||||
'Allow users to unlink account credentials for this provider from '. | 'Allow users to unlink account credentials for this provider from '. | ||||
'existing Phabricator accounts. If you disable this, Phabricator '. | 'existing accounts. If you disable this, accounts will be '. | ||||
'accounts will be permanently bound to provider accounts.')); | 'permanently bound to provider accounts.')); | ||||
$str_trusted_email = hsprintf( | $str_trusted_email = hsprintf( | ||||
'<strong>%s:</strong> %s', | '<strong>%s:</strong> %s', | ||||
pht('Trust Email Addresses'), | pht('Trust Email Addresses'), | ||||
pht( | pht( | ||||
'Phabricator will skip email verification for accounts registered '. | 'Skip email verification for accounts registered '. | ||||
'through this provider.')); | 'through this provider.')); | ||||
$str_auto_login = hsprintf( | $str_auto_login = hsprintf( | ||||
'<strong>%s:</strong> %s', | '<strong>%s:</strong> %s', | ||||
pht('Allow Auto Login'), | pht('Allow Auto Login'), | ||||
pht( | pht( | ||||
'Phabricator will automatically login with this provider if it is '. | 'Automatically log in with this provider if it is '. | ||||
'the only available provider.')); | 'the only available provider.')); | ||||
$form = id(new AphrontFormView()) | $form = id(new AphrontFormView()) | ||||
->setUser($viewer) | ->setUser($viewer) | ||||
->addHiddenInput('provider', $provider_class) | ->addHiddenInput('provider', $provider_class) | ||||
->appendChild( | ->appendChild( | ||||
id(new AphrontFormCheckboxControl()) | id(new AphrontFormCheckboxControl()) | ||||
->setLabel(pht('Allow')) | ->setLabel(pht('Allow')) | ||||
▲ Show 20 Lines • Show All 116 Lines • Show Last 20 Lines |