]> 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)
committerArthur Schiwon <blizzz@owncloud.com>
Wed, 13 Aug 2014 14:09:59 +0000 (16:09 +0200)
lib/base.php

index 1e6d5cf808b65618696635ccf05dafe0e4f0ced4..d08778ef8484497b350d76bb65ec99a745518e1d 100644 (file)
@@ -692,6 +692,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();
                }