mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 15:27:42 +02:00
[ticket/17338] Update user_last_active on session removal and login keys reset
PHPBB-17338
This commit is contained in:
@@ -903,7 +903,8 @@ class session
|
|||||||
}
|
}
|
||||||
|
|
||||||
$sql = 'UPDATE ' . USERS_TABLE . '
|
$sql = 'UPDATE ' . USERS_TABLE . '
|
||||||
SET user_lastvisit = ' . (int) $this->data['session_time'] . '
|
SET user_lastvisit = ' . (int) $this->data['session_time'] . ',
|
||||||
|
user_last_active = ' . (int) $this->data['session_time'] . '
|
||||||
WHERE user_id = ' . (int) $this->data['user_id'];
|
WHERE user_id = ' . (int) $this->data['user_id'];
|
||||||
$db->sql_query($sql);
|
$db->sql_query($sql);
|
||||||
|
|
||||||
@@ -1652,7 +1653,9 @@ class session
|
|||||||
if ($row)
|
if ($row)
|
||||||
{
|
{
|
||||||
$sql = 'UPDATE ' . USERS_TABLE . '
|
$sql = 'UPDATE ' . USERS_TABLE . '
|
||||||
SET user_lastvisit = ' . (int) $row['session_time'] . ", user_lastpage = '" . $db->sql_escape($row['session_page']) . "'
|
SET user_lastvisit = ' . (int) $row['session_time'] . ',
|
||||||
|
user_last_active = ' . (int) $row['session_time'] . ",
|
||||||
|
user_lastpage = '" . $db->sql_escape($row['session_page']) . "'
|
||||||
WHERE user_id = " . (int) $user_id;
|
WHERE user_id = " . (int) $user_id;
|
||||||
$db->sql_query($sql);
|
$db->sql_query($sql);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user