mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-24 06:20:56 +01:00
Minor, fix the "password" auth default (should be enabled if not provided).
This commit is contained in:
parent
e117b320e2
commit
055535b462
1 changed files with 5 additions and 1 deletions
|
@ -45,6 +45,7 @@ $config_map = array(
|
|||
),
|
||||
'PhabricatorAuthProviderPassword' => array(
|
||||
'enabled' => 'auth.password-auth-enabled',
|
||||
'enabled-default' => true,
|
||||
'registration' => false,
|
||||
'type' => 'password',
|
||||
'domain' => 'self',
|
||||
|
@ -53,7 +54,10 @@ $config_map = array(
|
|||
|
||||
foreach ($config_map as $provider_class => $spec) {
|
||||
$enabled_key = idx($spec, 'enabled');
|
||||
$enabled = PhabricatorEnv::getEnvConfigIfExists($enabled_key);
|
||||
$enabled_default = idx($spec, 'enabled-default', false);
|
||||
$enabled = PhabricatorEnv::getEnvConfigIfExists(
|
||||
$enabled_key,
|
||||
$enabled_default);
|
||||
|
||||
if (!$enabled) {
|
||||
echo pht("Skipping %s (not enabled).\n", $provider_class);
|
||||
|
|
Loading…
Reference in a new issue