mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[feature/oauth] Finish cleaning up TODOs
PHPBB3-11673
This commit is contained in:
parent
27ba57747a
commit
d398ae41c0
2 changed files with 4 additions and 4 deletions
|
@ -93,6 +93,8 @@ $lang = array_merge($lang, array(
|
||||||
'AUTH_PROVIDER_OAUTH_SERVICE_BITLY' => 'Bitly',
|
'AUTH_PROVIDER_OAUTH_SERVICE_BITLY' => 'Bitly',
|
||||||
'AUTH_PROVIDER_OAUTH_SERVICE_FACEBOOK' => 'Facebook',
|
'AUTH_PROVIDER_OAUTH_SERVICE_FACEBOOK' => 'Facebook',
|
||||||
'AUTH_PROVIDER_OAUTH_SERVICE_GOOGLE' => 'Google',
|
'AUTH_PROVIDER_OAUTH_SERVICE_GOOGLE' => 'Google',
|
||||||
|
'AUTH_PROVIDER_OAUTH_TOKEN_ERROR_NOT_STORED' => 'OAuth token not stored.',
|
||||||
|
'AUTH_PROVIDER_OAUTH_TOKEN_ERROR_INCORRECTLY_STORED' => 'OAuth token incorrectly stored.',
|
||||||
'AVATAR_DISALLOWED_CONTENT' => 'The upload was rejected because the uploaded file was identified as a possible attack vector.',
|
'AVATAR_DISALLOWED_CONTENT' => 'The upload was rejected because the uploaded file was identified as a possible attack vector.',
|
||||||
'AVATAR_DISALLOWED_EXTENSION' => 'This file cannot be displayed because the extension <strong>%s</strong> is not allowed.',
|
'AVATAR_DISALLOWED_EXTENSION' => 'This file cannot be displayed because the extension <strong>%s</strong> is not allowed.',
|
||||||
'AVATAR_EMPTY_REMOTE_DATA' => 'The specified avatar could not be uploaded because the remote data appears to be invalid or corrupted.',
|
'AVATAR_EMPTY_REMOTE_DATA' => 'The specified avatar could not be uploaded because the remote data appears to be invalid or corrupted.',
|
||||||
|
|
|
@ -245,8 +245,7 @@ class phpbb_auth_provider_oauth_token_storage implements TokenStorageInterface
|
||||||
|
|
||||||
if (!$row)
|
if (!$row)
|
||||||
{
|
{
|
||||||
// TODO: translate
|
throw new TokenNotFoundException('AUTH_PROVIDER_OAUTH_TOKEN_ERROR_NOT_STORED');
|
||||||
throw new TokenNotFoundException('Token not stored');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$token = $this->json_decode_token($row['oauth_token']);
|
$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))
|
if (!($token instanceof TokenInterface))
|
||||||
{
|
{
|
||||||
$this->clearToken();
|
$this->clearToken();
|
||||||
// TODO: translate
|
throw new TokenNotFoundException('AUTH_PROVIDER_OAUTH_TOKEN_ERROR_INCORRECTLY_STORED');
|
||||||
throw new TokenNotFoundException('Token not stored correctly');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->cachedToken = $token;
|
$this->cachedToken = $token;
|
||||||
|
|
Loading…
Add table
Reference in a new issue