From aadd636a01e039802db63eb3c7ccbb10eb535e1b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 4 Apr 2013 17:59:04 +0400 Subject: [PATCH] enable remember me --- classes/handler/public.php | 4 ++-- include/login_form.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/handler/public.php b/classes/handler/public.php index 9304b0181..b8a32cd27 100644 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -515,7 +515,7 @@ class Handler_Public extends Handler { $login = db_escape_string($this->link, $_POST["login"]); $password = $_POST["password"]; - /* $remember_me = $_POST["remember_me"]; + $remember_me = $_POST["remember_me"]; if ($remember_me) { session_set_cookie_params(SESSION_COOKIE_LIFETIME); @@ -523,7 +523,7 @@ class Handler_Public extends Handler { session_set_cookie_params(0); } - @session_start(); */ + @session_start(); if (authenticate_user($this->link, $login, $password)) { $_POST["password"] = ""; diff --git a/include/login_form.php b/include/login_form.php index ca07ccfee..7ac7111c8 100644 --- a/include/login_form.php +++ b/include/login_form.php @@ -221,7 +221,7 @@ function bwLimitChange(elem) { - 0) { /* disabled for now */ ?> + 0) { ?>