[ticket/security/274] Reset login keys/session when resetting password

SECURITY-274
This commit is contained in:
Marc Alexander 2022-10-22 14:13:36 +02:00
parent 67c41633a2
commit 827c135cc9
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -415,6 +415,7 @@ class reset_password
SET ' . $this->db->sql_build_array('UPDATE', $sql_ary) . '
WHERE user_id = ' . (int) $user_row['user_id'];
$this->db->sql_query($sql);
$this->user->reset_login_keys();
$this->log->add('user', $user_row['user_id'], $this->user->ip, 'LOG_USER_NEW_PASSWORD', false, [
'reportee_id' => $user_row['user_id'],
$user_row['username']