Differential D21782 Diff 51938 src/applications/config/option/PhabricatorAuthenticationConfigOptions.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/option/PhabricatorAuthenticationConfigOptions.php
Show All 38 Lines | return array( | ||||
array( | array( | ||||
pht('Require Administrators to Approve Accounts'), | pht('Require Administrators to Approve Accounts'), | ||||
pht("Don't Require Manual Approval"), | pht("Don't Require Manual Approval"), | ||||
)) | )) | ||||
->setSummary( | ->setSummary( | ||||
pht('Require administrators to approve new accounts.')) | pht('Require administrators to approve new accounts.')) | ||||
->setDescription( | ->setDescription( | ||||
pht( | pht( | ||||
"Newly registered Phabricator accounts can either be placed ". | "Newly registered accounts can either be placed ". | ||||
"into a manual approval queue for administrative review, or ". | "into a manual approval queue for administrative review, or ". | ||||
"automatically activated immediately. The approval queue is ". | "automatically activated immediately. The approval queue is ". | ||||
"enabled by default because it gives you greater control over ". | "enabled by default because it gives you greater control over ". | ||||
"who can register an account and access Phabricator.\n\n". | "who can register an account and access the server.\n\n". | ||||
"If your install is completely public, or on a VPN, or users can ". | "If your install is completely public, or on a VPN, or users can ". | ||||
"only register with a trusted provider like LDAP, or you've ". | "only register with a trusted provider like LDAP, or you've ". | ||||
"otherwise configured Phabricator to prevent unauthorized ". | "otherwise configured the server to prevent unauthorized ". | ||||
"registration, you can disable the queue to reduce administrative ". | "registration, you can disable the queue to reduce administrative ". | ||||
"overhead.\n\n". | "overhead.\n\n". | ||||
"NOTE: Before you disable the queue, make sure ". | "NOTE: Before you disable the queue, make sure ". | ||||
"@{config:auth.email-domains} is configured correctly ". | "@{config:auth.email-domains} is configured correctly ". | ||||
"for your install!")), | "for your install!")), | ||||
$this->newOption('auth.email-domains', 'list<string>', array()) | $this->newOption('auth.email-domains', 'list<string>', array()) | ||||
->setSummary(pht('Only allow registration from particular domains.')) | ->setSummary(pht('Only allow registration from particular domains.')) | ||||
->setDescription( | ->setDescription( | ||||
Show All 39 Lines | return array( | ||||
->setSummary( | ->setSummary( | ||||
pht( | pht( | ||||
'Determines whether or not basic account information is editable.')) | 'Determines whether or not basic account information is editable.')) | ||||
->setDescription( | ->setDescription( | ||||
pht( | pht( | ||||
'This option controls whether users can edit account email '. | 'This option controls whether users can edit account email '. | ||||
'addresses and profile real names.'. | 'addresses and profile real names.'. | ||||
"\n\n". | "\n\n". | ||||
'If you set up Phabricator to automatically synchronize account '. | 'If you set things up to automatically synchronize account '. | ||||
'information from some other authoritative system, you can '. | 'information from some other authoritative system, you can '. | ||||
'prevent users from making these edits to ensure information '. | 'prevent users from making these edits to ensure information '. | ||||
'remains consistent across both systems.')), | 'remains consistent across both systems.')), | ||||
$this->newOption('account.minimum-password-length', 'int', 8) | $this->newOption('account.minimum-password-length', 'int', 8) | ||||
->setSummary(pht('Minimum password length.')) | ->setSummary(pht('Minimum password length.')) | ||||
->setDescription( | ->setDescription( | ||||
pht( | pht( | ||||
'When users set or reset a password, it must have at least this '. | 'When users set or reset a password, it must have at least this '. | ||||
'many characters.')), | 'many characters.')), | ||||
); | ); | ||||
} | } | ||||
} | } |