Hack base.php to make Basic Auth work

This commit is contained in:
Thomas Tanghus 2013-05-25 05:51:51 +03:00
parent 6a6c18dfab
commit e66f609a64

View 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;
}