From: Andrew Dolgov Date: Thu, 4 Apr 2013 13:59:04 +0000 (+0400) Subject: enable remember me X-Git-Tag: 1.7.9~76 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=aadd636a01e039802db63eb3c7ccbb10eb535e1b;p=tt-rss.git enable remember me --- diff --git a/classes/handler/public.php b/classes/handler/public.php index 9304b018..b8a32cd2 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 ca07ccfe..7ac7111c 100644 --- a/include/login_form.php +++ b/include/login_form.php @@ -221,7 +221,7 @@ function bwLimitChange(elem) { - 0) { /* disabled for now */ ?> + 0) { ?>