mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-24 20:28:51 +00:00
[feature/oauth] Update oauth::logout() to use clearAllTokens()
PHPBB3-11673
This commit is contained in:
parent
6df2bd4fd3
commit
a2be0aab5f
1 changed files with 2 additions and 4 deletions
|
@ -530,10 +530,8 @@ class phpbb_auth_provider_oauth extends phpbb_auth_provider_base
|
||||||
public function logout($data, $new_session)
|
public function logout($data, $new_session)
|
||||||
{
|
{
|
||||||
// Clear all tokens belonging to the user
|
// Clear all tokens belonging to the user
|
||||||
$sql = 'DELETE FROM ' . $this->auth_provider_oauth_token_storage_table . "
|
$storage = new phpbb_auth_provider_oauth_token_storage($this->db, $this->user, '', $this->auth_provider_oauth_token_storage_table);
|
||||||
WHERE session_id = '" . $this->db->sql_escape($this->user->session_id) . "'
|
$stroage->clearAllTokens();
|
||||||
AND user_id = " . (int) $this->user->data['user_id'];
|
|
||||||
$this->db->sql_query($sql);
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue