mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[feature/oauth] Fix token storage after sql changes
PHPBB3-11673
This commit is contained in:
parent
2483efe9a3
commit
b1c62793c6
1 changed files with 4 additions and 4 deletions
|
@ -88,7 +88,7 @@ class phpbb_auth_provider_oauth_token_storage implements TokenStorageInterface
|
||||||
|
|
||||||
$data = array(
|
$data = array(
|
||||||
'user_id' => $this->user->data['user_id'],
|
'user_id' => $this->user->data['user_id'],
|
||||||
'oauth_provider' => $this->service_name,
|
'provider' => $this->service_name,
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($this->user->data['user_id'] == ANONYMOUS)
|
if ($this->user->data['user_id'] == ANONYMOUS)
|
||||||
|
@ -131,7 +131,7 @@ class phpbb_auth_provider_oauth_token_storage implements TokenStorageInterface
|
||||||
|
|
||||||
$data = array(
|
$data = array(
|
||||||
'user_id' => $this->user->data['user_id'],
|
'user_id' => $this->user->data['user_id'],
|
||||||
'oauth_provider' => $this->service_name,
|
'provider' => $this->service_name,
|
||||||
'oauth_token' => serialize($token),
|
'oauth_token' => serialize($token),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -156,7 +156,7 @@ class phpbb_auth_provider_oauth_token_storage implements TokenStorageInterface
|
||||||
|
|
||||||
$data = array(
|
$data = array(
|
||||||
'user_id' => $this->user->data['user_id'],
|
'user_id' => $this->user->data['user_id'],
|
||||||
'oauth_provider' => $this->service_name,
|
'provider' => $this->service_name,
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($this->user->data['user_id'] == ANONYMOUS)
|
if ($this->user->data['user_id'] == ANONYMOUS)
|
||||||
|
@ -187,7 +187,7 @@ class phpbb_auth_provider_oauth_token_storage implements TokenStorageInterface
|
||||||
|
|
||||||
$sql = 'DELETE FROM ' . $this->auth_provider_oauth_table . '
|
$sql = 'DELETE FROM ' . $this->auth_provider_oauth_table . '
|
||||||
WHERE user_id = ' . $this->user->data['user_id'] . '
|
WHERE user_id = ' . $this->user->data['user_id'] . '
|
||||||
AND oauth_provider = ' . $this->db->sql_escape($this->oauth_provider);
|
AND provider = ' . $this->db->sql_escape($this->oauth_provider);
|
||||||
|
|
||||||
if ($this->user->data['user_id'] == ANONYMOUS)
|
if ($this->user->data['user_id'] == ANONYMOUS)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue