Set user related sessions for single user mode

This commit is contained in:
powerivq
2022-08-31 14:52:42 -07:00
parent 5fea1a7ea9
commit 96595ca4c5
3 changed files with 16 additions and 18 deletions

View File

@@ -394,10 +394,6 @@ class Handler_Public extends Handler {
if (UserHelper::authenticate($login, $password)) {
$_POST["password"] = "";
if (Config::get_schema_version() >= 120) {
$_SESSION["language"] = get_pref(Prefs::USER_LANGUAGE, $_SESSION["uid"]);
}
$_SESSION["ref_schema_version"] = Config::get_schema_version();
$_SESSION["bw_limit"] = !!clean($_POST["bw_limit"] ?? false);
$_SESSION["safe_mode"] = $safe_mode;