Differential D7978 Diff 18056 src/applications/config/option/PhabricatorAuthenticationConfigOptions.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/option/PhabricatorAuthenticationConfigOptions.php
| <?php | <?php | ||||
| final class PhabricatorAuthenticationConfigOptions | final class PhabricatorAuthenticationConfigOptions | ||||
| extends PhabricatorApplicationConfigOptions { | extends PhabricatorApplicationConfigOptions { | ||||
| public function getName() { | public function getName() { | ||||
| return pht("Authentication"); | return pht("Authentication"); | ||||
| } | } | ||||
| public function getDescription() { | public function getDescription() { | ||||
| return pht("Options relating to authentication."); | return pht("Options relating to authentication."); | ||||
| } | } | ||||
| public function getOptions() { | public function getOptions() { | ||||
| return array( | return array( | ||||
| $this->newOption('auth.sessions.web', 'int', 5) | |||||
| ->setSummary( | |||||
| pht("Number of web sessions a user can have simultaneously.")) | |||||
| ->setDescription( | |||||
| pht( | |||||
| "Maximum number of simultaneous web sessions each user is ". | |||||
| "permitted to have. Setting this to '1' will prevent a user from ". | |||||
| "logging in on more than one browser at the same time.")), | |||||
| $this->newOption('auth.sessions.conduit', 'int', 5) | |||||
| ->setSummary( | |||||
| pht( | |||||
| "Number of simultaneous Conduit sessions each user is permitted.")) | |||||
| ->setDescription( | |||||
| pht( | |||||
| "Maximum number of simultaneous Conduit sessions each user is ". | |||||
| "permitted to have.")), | |||||
| $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.")) | ||||
| ▲ Show 20 Lines • Show All 79 Lines • Show Last 20 Lines | |||||