Hack base.php to make Basic Auth work
This commit is contained in:
parent
6a6c18dfab
commit
e66f609a64
|
@ -571,6 +571,7 @@ class OC {
|
||||||
self::checkUpgrade();
|
self::checkUpgrade();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
OC::tryBasicAuthLogin();
|
||||||
if (!self::$CLI) {
|
if (!self::$CLI) {
|
||||||
try {
|
try {
|
||||||
if (!OC_Config::getValue('maintenance', false)) {
|
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_Log::write('core',"Logged in with HTTP Authentication", OC_Log::DEBUG);
|
||||||
OC_User::unsetMagicInCookie();
|
OC_User::unsetMagicInCookie();
|
||||||
$_REQUEST['redirect_url'] = OC_Request::requestUri();
|
$_REQUEST['redirect_url'] = OC_Request::requestUri();
|
||||||
OC_Util::redirectToDefaultPage();
|
//OC_Util::redirectToDefaultPage();
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue