From 055535b462148a07c0b2d80ba5bc3a8666a1449e Mon Sep 17 00:00:00 2001 From: epriestley Date: Thu, 20 Jun 2013 11:20:41 -0700 Subject: [PATCH] Minor, fix the "password" auth default (should be enabled if not provided). --- resources/sql/patches/20130619.authconf.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/sql/patches/20130619.authconf.php b/resources/sql/patches/20130619.authconf.php index 4482520c11..7f194282a5 100644 --- a/resources/sql/patches/20130619.authconf.php +++ b/resources/sql/patches/20130619.authconf.php @@ -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);