mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[feature/oauth] Finish cleaning up TODOs
PHPBB3-11673
This commit is contained in:
@@ -245,8 +245,7 @@ class phpbb_auth_provider_oauth_token_storage implements TokenStorageInterface
|
||||
|
||||
if (!$row)
|
||||
{
|
||||
// TODO: translate
|
||||
throw new TokenNotFoundException('Token not stored');
|
||||
throw new TokenNotFoundException('AUTH_PROVIDER_OAUTH_TOKEN_ERROR_NOT_STORED');
|
||||
}
|
||||
|
||||
$token = $this->json_decode_token($row['oauth_token']);
|
||||
@@ -255,8 +254,7 @@ class phpbb_auth_provider_oauth_token_storage implements TokenStorageInterface
|
||||
if (!($token instanceof TokenInterface))
|
||||
{
|
||||
$this->clearToken();
|
||||
// TODO: translate
|
||||
throw new TokenNotFoundException('Token not stored correctly');
|
||||
throw new TokenNotFoundException('AUTH_PROVIDER_OAUTH_TOKEN_ERROR_INCORRECTLY_STORED');
|
||||
}
|
||||
|
||||
$this->cachedToken = $token;
|
||||
|
Reference in New Issue
Block a user