From: Andrew Dolgov Date: Fri, 4 May 2007 03:10:27 +0000 (+0100) Subject: bump last_login in login_sequence even if session is valid X-Git-Tag: schema_freeze_for_1.2.11~75 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=d3687e7a9e2c807d1113522a4e83682fe803c4f2;p=tt-rss.git bump last_login in login_sequence even if session is valid --- diff --git a/functions.php b/functions.php index 2a2bf2e8..3968764f 100644 --- a/functions.php +++ b/functions.php @@ -1325,9 +1325,12 @@ 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); }