diff options
Diffstat (limited to 'classes/handler/public.php')
-rw-r--r-- | classes/handler/public.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php index 51e50adc8..798e96343 100644 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -492,9 +492,6 @@ class Handler_Public extends Handler { } function login() { - @session_destroy(); - @session_start(); - $_SESSION["prefs_cache"] = array(); if (!SINGLE_USER_MODE) { @@ -503,6 +500,8 @@ class Handler_Public extends Handler { $password = $_POST["password"]; $remember_me = $_POST["remember_me"]; + @session_start(); + if (authenticate_user($this->link, $login, $password)) { $_POST["password"] = ""; |