diff --git a/functions.php b/functions.php index 2a2bf2e8e..3968764f7 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); }