diff options
author | Joseph Warner <hardolaf@hardolaf.com> | 2013-08-14 17:01:15 -0400 |
---|---|---|
committer | Joseph Warner <hardolaf@hardolaf.com> | 2013-08-14 17:01:33 -0400 |
commit | 59c8db28d61c9b43ac35f734c0b280bef4a4a8b8 (patch) | |
tree | 7a81126b71bb419012735eb7c94d4312b0911c5e | |
parent | 823b7e2b84b0c1cfda001c509876f1aef1a17b35 (diff) | |
download | forums-59c8db28d61c9b43ac35f734c0b280bef4a4a8b8.tar forums-59c8db28d61c9b43ac35f734c0b280bef4a4a8b8.tar.gz forums-59c8db28d61c9b43ac35f734c0b280bef4a4a8b8.tar.bz2 forums-59c8db28d61c9b43ac35f734c0b280bef4a4a8b8.tar.xz forums-59c8db28d61c9b43ac35f734c0b280bef4a4a8b8.zip |
[feature/oauth] Always store session_id with token
PHPBB3-11673
-rw-r--r-- | phpBB/phpbb/auth/provider/oauth/token_storage.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/phpBB/phpbb/auth/provider/oauth/token_storage.php b/phpBB/phpbb/auth/provider/oauth/token_storage.php index b38029c650..313ad7661b 100644 --- a/phpBB/phpbb/auth/provider/oauth/token_storage.php +++ b/phpBB/phpbb/auth/provider/oauth/token_storage.php @@ -110,13 +110,9 @@ class phpbb_auth_provider_oauth_token_storage implements TokenStorageInterface 'user_id' => $this->user->data['user_id'], 'provider' => $this->service_name, 'oauth_token' => serialize($token), + 'session_id' => $this->user->data['session_id'], ); - if ($this->user->data['user_id'] == ANONYMOUS) - { - $data['session_id'] = $this->user->data['session_id']; - } - $sql = 'INSERT INTO ' . $this->auth_provider_oauth_table . ' ' . $this->db->sql_build_array('INSERT', $data); $this->db->sql_query($sql); |