Commit ef28e40c authored by tbrehm's avatar tbrehm
Browse files

Improved login function.

parent 472c2ccb
......@@ -185,6 +185,7 @@ class login_index {
$user = $app->db->toLower($user);
if ($loginAs) $oldSession = $_SESSION['s'];
$_SESSION = array();
if ($loginAs) $_SESSION['s_old'] = $oldSession; // keep the way back!
$_SESSION['s']['user'] = $user;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment