aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/phpbb/auth/provider/oauth/token_storage.php6
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);