зеркало из https://github.com/nextcloud/server.git
Родитель
4629d6ad67
Коммит
e9849270e3
|
@ -826,17 +826,12 @@ class OC {
|
||||||
) {
|
) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// don't redo authentication if user is already logged in
|
|
||||||
// otherwise session would be invalidated in OC_User::login with
|
|
||||||
// session_regenerate_id at every page load
|
|
||||||
if (!OC_User::isLoggedIn()) {
|
|
||||||
OC_App::loadApps(array('authentication'));
|
OC_App::loadApps(array('authentication'));
|
||||||
if (OC_User::login($_SERVER["PHP_AUTH_USER"], $_SERVER["PHP_AUTH_PW"])) {
|
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_Log::write('core',"Logged in with HTTP Authentication", OC_Log::DEBUG);
|
||||||
OC_User::unsetMagicInCookie();
|
OC_User::unsetMagicInCookie();
|
||||||
$_SERVER['HTTP_REQUESTTOKEN'] = OC_Util::callRegister();
|
$_SERVER['HTTP_REQUESTTOKEN'] = OC_Util::callRegister();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче