From d3687e7a9e2c807d1113522a4e83682fe803c4f2 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 4 May 2007 04:10:27 +0100 Subject: [PATCH] bump last_login in login_sequence even if session is valid --- functions.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } -- 2.39.5