diff options
author | Andrew Dolgov <[email protected]> | 2007-05-04 04:10:27 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-05-04 04:10:27 +0100 |
commit | d3687e7a9e2c807d1113522a4e83682fe803c4f2 (patch) | |
tree | 073a07ceefade9fb08b5af949e703575c7a59095 /functions.php | |
parent | d09a6025922b5955f553031c364a85d1bd676dd9 (diff) |
bump last_login in login_sequence even if session is valid
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 5 |
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); } |