]> source.dussan.org Git - nextcloud-server.git/commitdiff
Revert "Clean up hack."
authorThomas Tanghus <thomas@tanghus.net>
Thu, 30 May 2013 22:53:15 +0000 (00:53 +0200)
committerThomas Tanghus <thomas@tanghus.net>
Thu, 30 May 2013 22:53:15 +0000 (00:53 +0200)
This reverts commit 138c7f615bef9994629d4aa283ae7f037dc0f14d.

3rdparty [changed from symlink to submodule]
lib/base.php

deleted file mode 120000 (symlink)
index ae24324a4bd221e3ece6667063ee5340d30d2e82..0000000000000000000000000000000000000000
--- a/3rdparty
+++ /dev/null
@@ -1 +0,0 @@
-/home/tol/owncloud/3rdparty/
\ No newline at end of file
new file mode 160000 (submodule)
index 0000000000000000000000000000000000000000..a13af72fbe8983686fc47489a750e60319f68ac2
--- /dev/null
+++ b/3rdparty
@@ -0,0 +1 @@
+Subproject commit a13af72fbe8983686fc47489a750e60319f68ac2
index 42d8fb3c8d921e70d872599a90b761726ff92f9f..8622d0f8bf10b1d7219a249d7108b7f5bc1c093e 100644 (file)
@@ -572,7 +572,6 @@ class OC {
                }
 
                OC::tryBasicAuthLogin();
-
                if (!self::$CLI) {
                        try {
                                if (!OC_Config::getValue('maintenance', false)) {
@@ -680,8 +679,9 @@ class OC {
                        $error[] = 'invalidpassword';
 
                        // The user is already authenticated using Apaches AuthType Basic... very usable in combination with LDAP
+               } elseif (OC::tryBasicAuthLogin()) {
+                       $error[] = 'invalidpassword';
                }
-
                OC_Util::displayLoginPage(array_unique($error));
        }
 
@@ -779,6 +779,8 @@ class OC {
                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();
+                       $_REQUEST['redirect_url'] = OC_Request::requestUri();
+                       //OC_Util::redirectToDefaultPage();
                }
                return true;
        }