Skip to content

Commit

Permalink
Hack base.php to make Basic Auth work
Browse files Browse the repository at this point in the history
  • Loading branch information
tanghus committed May 25, 2013
1 parent 6a6c18d commit e66f609
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,7 @@ public static function handleRequest() {
self::checkUpgrade();
}

OC::tryBasicAuthLogin();
if (!self::$CLI) {
try {
if (!OC_Config::getValue('maintenance', false)) {
Expand Down Expand Up @@ -779,7 +780,7 @@ protected static function tryBasicAuthLogin() {
//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;
}
Expand Down

0 comments on commit e66f609

Please sign in to comment.