Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/option/PhabricatorSecurityConfigOptions.php
Show First 20 Lines • Show All 148 Lines • ▼ Show 20 Lines | return array( | ||||
->setSummary( | ->setSummary( | ||||
pht('Require all users to configure multi-factor authentication.')) | pht('Require all users to configure multi-factor authentication.')) | ||||
->setDescription($require_mfa_description) | ->setDescription($require_mfa_description) | ||||
->setBoolOptions( | ->setBoolOptions( | ||||
array( | array( | ||||
pht('Multi-Factor Required'), | pht('Multi-Factor Required'), | ||||
pht('Multi-Factor Optional'), | pht('Multi-Factor Optional'), | ||||
)), | )), | ||||
$this->newOption( | $this->newOption( | ||||
'phabricator.csrf-key', | |||||
'string', | |||||
'0b7ec0592e0a2829d8b71df2fa269b2c6172eca3') | |||||
->setHidden(true) | |||||
->setSummary( | |||||
pht('Hashed with other inputs to generate CSRF tokens.')) | |||||
->setDescription( | |||||
pht( | |||||
'This is hashed with other inputs to generate CSRF tokens. If '. | |||||
'you want, you can change it to some other string which is '. | |||||
'unique to your install. This will make your install more secure '. | |||||
'in a vague, mostly theoretical way. But it will take you like 3 '. | |||||
'seconds of mashing on your keyboard to set it up so you might '. | |||||
'as well.')), | |||||
$this->newOption( | |||||
'uri.allowed-protocols', | 'uri.allowed-protocols', | ||||
'set', | 'set', | ||||
array( | array( | ||||
'http' => true, | 'http' => true, | ||||
'https' => true, | 'https' => true, | ||||
'mailto' => true, | 'mailto' => true, | ||||
)) | )) | ||||
->setSummary( | ->setSummary( | ||||
▲ Show 20 Lines • Show All 156 Lines • Show Last 20 Lines |