]> source.dussan.org Git - nextcloud-server.git/commitdiff
Hack base.php to make Basic Auth work
authorThomas Tanghus <thomas@tanghus.net>
Sat, 25 May 2013 02:51:51 +0000 (05:51 +0300)
committerThomas Tanghus <thomas@tanghus.net>
Sat, 25 May 2013 02:51:51 +0000 (05:51 +0300)
lib/base.php

index 724bd250a5c63fc3d518b5d19c41933d29b21c36..8622d0f8bf10b1d7219a249d7108b7f5bc1c093e 100644 (file)
@@ -571,6 +571,7 @@ class OC {
                        self::checkUpgrade();
                }
 
+               OC::tryBasicAuthLogin();
                if (!self::$CLI) {
                        try {
                                if (!OC_Config::getValue('maintenance', false)) {
@@ -779,7 +780,7 @@ class OC {
                        //OC_Log::write('core',"Logged in with HTTP Authentication", OC_Log::DEBUG);
                        OC_User::unsetMagicInCookie();
                        $_REQUEST['redirect_url'] = OC_Request::requestUri();
-                       OC_Util::redirectToDefaultPage();
+                       //OC_Util::redirectToDefaultPage();
                }
                return true;
        }