}
OC::tryBasicAuthLogin();
-
if (!self::$CLI) {
try {
if (!OC_Config::getValue('maintenance', false)) {
$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));
}
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;
}