Differential D10585 Diff 25583 src/applications/config/option/PhabricatorAuthenticationConfigOptions.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/option/PhabricatorAuthenticationConfigOptions.php
Show All 11 Lines | final class PhabricatorAuthenticationConfigOptions | ||||
} | } | ||||
public function getOptions() { | public function getOptions() { | ||||
return array( | return array( | ||||
$this->newOption('auth.require-email-verification', 'bool', false) | $this->newOption('auth.require-email-verification', 'bool', false) | ||||
->setBoolOptions( | ->setBoolOptions( | ||||
array( | array( | ||||
pht('Require email verification'), | pht('Require email verification'), | ||||
pht("Don't require email verification") | pht("Don't require email verification"), | ||||
)) | )) | ||||
->setSummary( | ->setSummary( | ||||
pht('Require email verification before a user can log in.')) | pht('Require email verification before a user can log in.')) | ||||
->setDescription( | ->setDescription( | ||||
pht( | pht( | ||||
'If true, email addresses must be verified (by clicking a link '. | 'If true, email addresses must be verified (by clicking a link '. | ||||
'in an email) before a user can login. By default, verification '. | 'in an email) before a user can login. By default, verification '. | ||||
'is optional unless {{auth.email-domains}} is nonempty.')), | 'is optional unless {{auth.email-domains}} is nonempty.')), | ||||
▲ Show 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | return array( | ||||
pht( | pht( | ||||
"You can provide an arbitrary block of HTML here, which will ". | "You can provide an arbitrary block of HTML here, which will ". | ||||
"appear on the login screen. Normally, you'd use this to provide ". | "appear on the login screen. Normally, you'd use this to provide ". | ||||
"login or registration instructions to users.")), | "login or registration instructions to users.")), | ||||
$this->newOption('account.editable', 'bool', true) | $this->newOption('account.editable', 'bool', true) | ||||
->setBoolOptions( | ->setBoolOptions( | ||||
array( | array( | ||||
pht('Allow editing'), | pht('Allow editing'), | ||||
pht('Prevent editing') | pht('Prevent editing'), | ||||
)) | )) | ||||
->setSummary( | ->setSummary( | ||||
pht( | pht( | ||||
'Determines whether or not basic account information is '. | 'Determines whether or not basic account information is '. | ||||
'editable.')) | 'editable.')) | ||||
->setDescription( | ->setDescription( | ||||
pht( | pht( | ||||
'Is basic account information (email, real name, profile '. | 'Is basic account information (email, real name, profile '. | ||||
Show All 14 Lines |