Skip to content

Commit

Permalink
Merge pull request #67 from phpbb/ticket/security-274
Browse files Browse the repository at this point in the history
[ticket/security/274] Reset login keys/session when resetting password
  • Loading branch information
marc1706 committed Nov 22, 2022
2 parents 0793126 + 827c135 commit e75ea66
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions phpBB/phpbb/ucp/controller/reset_password.php
Expand Up @@ -415,6 +415,7 @@ public function reset()
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']
Expand Down

0 comments on commit e75ea66

Please sign in to comment.