1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-08 00:25:19 +02:00

[feature/oauth] A few more minor changes

PHPBB3-11673
This commit is contained in:
Joseph Warner 2013-08-24 22:10:10 -04:00
parent a8ffbce99f
commit d847df7175
2 changed files with 14 additions and 1 deletions

View File

@ -506,6 +506,12 @@ class ucp_register
$this->page_title = 'UCP_REGISTRATION'; $this->page_title = 'UCP_REGISTRATION';
} }
/**
* Creates the login_link data array
*
* @return array Returns an array of all POST paramaters whose names
* begin with 'login_link_'
*/
protected function get_login_link_data_array() protected function get_login_link_data_array()
{ {
global $request; global $request;
@ -525,6 +531,13 @@ class ucp_register
return $login_link_data; return $login_link_data;
} }
/**
* Prepends they key names of an associative array with 'login_link_' for
* inclusion on the page as hidden fields.
*
* @param array $data The array to be modified
* @return array The modified array
*/
protected function get_login_link_data_for_hidden_fields($data) protected function get_login_link_data_for_hidden_fields($data)
{ {
$new_data = array(); $new_data = array();

View File

@ -301,7 +301,7 @@ class phpbb_auth_provider_oauth_token_storage implements TokenStorageInterface
if ($token_data === null) if ($token_data === null)
{ {
throw new TokenNotFoundException('Token not stored correctly'); throw new TokenNotFoundException('AUTH_PROVIDER_OAUTH_TOKEN_ERROR_INCORRECTLY_STORED');
} }
$token_class = $token_data['token_class']; $token_class = $token_data['token_class'];