]> git.wh0rd.org Git - tt-rss.git/commitdiff
enable remember me
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 4 Apr 2013 13:59:04 +0000 (17:59 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 4 Apr 2013 13:59:04 +0000 (17:59 +0400)
classes/handler/public.php
include/login_form.php

index 9304b01811bc019bd6e2d90c56035a42e9dad2f3..b8a32cd2707d0ad3a341fa65c94bf29fa8dc3c43 100644 (file)
@@ -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"] = "";
index ca07ccfee5f53ca4d4f57d28b321a62c0cb5c583..7ac7111c895f20fba1efdb8c4ffcea80833a850e 100644 (file)
@@ -221,7 +221,7 @@ function bwLimitChange(elem) {
                        <label style='display : inline' for="bw_limit"><?php echo __("Use less traffic") ?></label>
                </div>
 
-               <?php if (false && SESSION_COOKIE_LIFETIME > 0) { /* disabled for now */ ?>
+               <?php if (SESSION_COOKIE_LIFETIME > 0) { ?>
 
                <div class="row">
                        <label>&nbsp;</label>