1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-12 03:34:04 +02:00

[ticket/16955] Clean up auth classes

PHPBB3-16955
This commit is contained in:
Marc Alexander
2022-12-27 17:42:23 +01:00
parent 5756d4dd9b
commit eeeb69b4ae
5 changed files with 24 additions and 36 deletions

View File

@@ -263,7 +263,7 @@ class token_storage implements TokenStorageInterface
$data['session_id'] = $this->user->data['session_id'];
}
return $this->get_state_row($data);
return $this->get_state_row($data)['oauth_state'] ?? '';
}
/**
@@ -519,7 +519,7 @@ class token_storage implements TokenStorageInterface
*
* @param array $data The SQL WHERE data
* @return array|false array with the OAuth state row,
* false if the state does not exist
* false if the state does not exist
*/
protected function get_state_row($data)
{