1
0
Fork 0
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:
epriestley 2013-06-20 11:20:41 -07:00
parent e117b320e2
commit 055535b462

View file

@ -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);