mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-30 01:10:58 +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(
|
'PhabricatorAuthProviderPassword' => array(
|
||||||
'enabled' => 'auth.password-auth-enabled',
|
'enabled' => 'auth.password-auth-enabled',
|
||||||
|
'enabled-default' => true,
|
||||||
'registration' => false,
|
'registration' => false,
|
||||||
'type' => 'password',
|
'type' => 'password',
|
||||||
'domain' => 'self',
|
'domain' => 'self',
|
||||||
|
@ -53,7 +54,10 @@ $config_map = array(
|
||||||
|
|
||||||
foreach ($config_map as $provider_class => $spec) {
|
foreach ($config_map as $provider_class => $spec) {
|
||||||
$enabled_key = idx($spec, 'enabled');
|
$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) {
|
if (!$enabled) {
|
||||||
echo pht("Skipping %s (not enabled).\n", $provider_class);
|
echo pht("Skipping %s (not enabled).\n", $provider_class);
|
||||||
|
|
Loading…
Reference in a new issue