]> source.dussan.org Git - nextcloud-server.git/commitdiff
Load authentication backends before tryBasicAuth
authorgekmihesg <markus@gekmihesg.de>
Sun, 10 Aug 2014 11:29:32 +0000 (13:29 +0200)
committergekmihesg <markus@gekmihesg.de>
Sun, 10 Aug 2014 11:29:32 +0000 (13:29 +0200)
lib/base.php

index a6f6f6f71d7f0be1f8e5ddb9bb8711d6c2ddf75b..b79998b352fcb9d70a093f67ae1ee7fc47dd7868 100644 (file)
@@ -699,6 +699,9 @@ class OC {
 
                if (!OC_User::isLoggedIn()) {
                        // Test it the user is already authenticated using Apaches AuthType Basic... very usable in combination with LDAP
+                       if (!OC_Config::getValue('maintenance', false) && !self::checkUpgrade(false)) {
+                               OC_App::loadApps(array('authentication'));
+                       }
                        OC::tryBasicAuthLogin();
                }