Skip to content

Commit

Permalink
Clean up hack.
Browse files Browse the repository at this point in the history
  • Loading branch information
tanghus committed May 30, 2013
1 parent e66f609 commit 138c7f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion 3rdparty
Submodule 3rdparty deleted from a13af7
1 change: 1 addition & 0 deletions 3rdparty
6 changes: 2 additions & 4 deletions lib/base.php
Expand Up @@ -572,6 +572,7 @@ public static function handleRequest() {
}

OC::tryBasicAuthLogin();

if (!self::$CLI) {
try {
if (!OC_Config::getValue('maintenance', false)) {
Expand Down Expand Up @@ -679,9 +680,8 @@ protected static function handleLogin() {
$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));
}

Expand Down Expand Up @@ -779,8 +779,6 @@ protected static function tryBasicAuthLogin() {
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;
}
Expand Down

0 comments on commit 138c7f6

Please sign in to comment.