summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-05-04 04:10:27 +0100
committerAndrew Dolgov <[email protected]>2007-05-04 04:10:27 +0100
commitd3687e7a9e2c807d1113522a4e83682fe803c4f2 (patch)
tree073a07ceefade9fb08b5af949e703575c7a59095
parentd09a6025922b5955f553031c364a85d1bd676dd9 (diff)
bump last_login in login_sequence even if session is valid
-rw-r--r--functions.php5
1 files changed, 4 insertions, 1 deletions
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);
}