mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[feature/oauth] Always store session_id with token
PHPBB3-11673
This commit is contained in:
parent
823b7e2b84
commit
59c8db28d6
1 changed files with 1 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue