bump last_login in login_sequence even if session is valid

This commit is contained in:
Andrew Dolgov 2007-05-04 04:10:27 +01:00
parent d09a602592
commit d3687e7a9e
1 changed files with 4 additions and 1 deletions

View File

@ -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);
}