bump last_login in login_sequence even if session is valid
This commit is contained in:
parent
d09a602592
commit
d3687e7a9e
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue