]> git.wh0rd.org Git - tt-rss.git/commitdiff
bump last_login in login_sequence even if session is valid
authorAndrew Dolgov <fox@madoka.spb.ru>
Fri, 4 May 2007 03:10:27 +0000 (04:10 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Fri, 4 May 2007 03:10:27 +0000 (04:10 +0100)
functions.php

index 2a2bf2e8e1e30de3cf05575fb539d82d6c54723c..3968764f75423e015e27eb8241478988e33e0444 100644 (file)
                        if (!$_SESSION["uid"] || !validate_session($link)) {
                                render_login_form($link, $mobile);
                                exit;
+                       } else {
+                               /* bump login timestamp */
+                               db_query($link, "UPDATE ttrss_users SET last_login = NOW() WHERE id = " . 
+                                       $_SESSION["uid"]);
                        }
 
-
                } else {
                        return authenticate_user($link, "admin", null);
                }