mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-04 21:44:57 +02:00
[feature/oauth] Always store session_id with token
PHPBB3-11673
This commit is contained in:
parent
823b7e2b84
commit
59c8db28d6
@ -110,13 +110,9 @@ class phpbb_auth_provider_oauth_token_storage implements TokenStorageInterface
|
|||||||
'user_id' => $this->user->data['user_id'],
|
'user_id' => $this->user->data['user_id'],
|
||||||
'provider' => $this->service_name,
|
'provider' => $this->service_name,
|
||||||
'oauth_token' => serialize($token),
|
'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 . '
|
$sql = 'INSERT INTO ' . $this->auth_provider_oauth_table . '
|
||||||
' . $this->db->sql_build_array('INSERT', $data);
|
' . $this->db->sql_build_array('INSERT', $data);
|
||||||
$this->db->sql_query($sql);
|
$this->db->sql_query($sql);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user