diff options
author | Joseph Warner <hardolaf@hardolaf.com> | 2013-09-02 15:27:57 -0400 |
---|---|---|
committer | Joseph Warner <hardolaf@hardolaf.com> | 2013-09-02 16:04:24 -0400 |
commit | a2be0aab5f21ee7efe7d765b08853231a38fcf72 (patch) | |
tree | 935100408d9dc884043c63cb426e37fa2f9f842d /phpBB/phpbb/auth/provider | |
parent | 6df2bd4fd3e9babc6a79e4f03d6d5a20d79940f8 (diff) | |
download | forums-a2be0aab5f21ee7efe7d765b08853231a38fcf72.tar forums-a2be0aab5f21ee7efe7d765b08853231a38fcf72.tar.gz forums-a2be0aab5f21ee7efe7d765b08853231a38fcf72.tar.bz2 forums-a2be0aab5f21ee7efe7d765b08853231a38fcf72.tar.xz forums-a2be0aab5f21ee7efe7d765b08853231a38fcf72.zip |
[feature/oauth] Update oauth::logout() to use clearAllTokens()
PHPBB3-11673
Diffstat (limited to 'phpBB/phpbb/auth/provider')
-rw-r--r-- | phpBB/phpbb/auth/provider/oauth/oauth.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/phpBB/phpbb/auth/provider/oauth/oauth.php b/phpBB/phpbb/auth/provider/oauth/oauth.php index 142c209c0a..a5709d8ff6 100644 --- a/phpBB/phpbb/auth/provider/oauth/oauth.php +++ b/phpBB/phpbb/auth/provider/oauth/oauth.php @@ -530,10 +530,8 @@ class phpbb_auth_provider_oauth extends phpbb_auth_provider_base public function logout($data, $new_session) { // Clear all tokens belonging to the user - $sql = 'DELETE FROM ' . $this->auth_provider_oauth_token_storage_table . " - WHERE session_id = '" . $this->db->sql_escape($this->user->session_id) . "' - AND user_id = " . (int) $this->user->data['user_id']; - $this->db->sql_query($sql); + $storage = new phpbb_auth_provider_oauth_token_storage($this->db, $this->user, '', $this->auth_provider_oauth_token_storage_table); + $stroage->clearAllTokens(); return; } |