]> source.dussan.org Git - nextcloud-server.git/commitdiff
Revert "fixes #4574"
authorThomas Müller <thomas.mueller@tmit.eu>
Thu, 5 Sep 2013 22:28:13 +0000 (00:28 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Thu, 5 Sep 2013 22:28:13 +0000 (00:28 +0200)
This reverts commit 81a45cfcf1c7064615429bb3f9759e9455868614.

lib/base.php

index fe160f73652492f24cca5149866a72f8ec0856df..ea5adbadc9d9f7b04e1d7575d0f6d0b8a0ab3a3e 100644 (file)
@@ -826,16 +826,11 @@ class OC {
                ) {
                        return false;
                }
-               // don't redo authentication if user is already logged in
-               // otherwise session would be invalidated in OC_User::login with 
-               // session_regenerate_id at every page load
-               if (!OC_User::isLoggedIn()) {
-                       OC_App::loadApps(array('authentication'));
-                       if (OC_User::login($_SERVER["PHP_AUTH_USER"], $_SERVER["PHP_AUTH_PW"])) {
-                               //OC_Log::write('core',"Logged in with HTTP Authentication", OC_Log::DEBUG);
-                               OC_User::unsetMagicInCookie();
-                               $_SERVER['HTTP_REQUESTTOKEN'] = OC_Util::callRegister();
-                       }
+               OC_App::loadApps(array('authentication'));
+               if (OC_User::login($_SERVER["PHP_AUTH_USER"], $_SERVER["PHP_AUTH_PW"])) {
+                       //OC_Log::write('core',"Logged in with HTTP Authentication", OC_Log::DEBUG);
+                       OC_User::unsetMagicInCookie();
+                       $_SERVER['HTTP_REQUESTTOKEN'] = OC_Util::callRegister();
                }
                return true;
        }