1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[feature/oauth] Add method to return necessary data for auth_link

PHPBB3-11673
This commit is contained in:
Joseph Warner
2013-08-09 05:16:39 -04:00
parent deb62d51fe
commit 0b80aaf217
2 changed files with 18 additions and 1 deletions

View File

@@ -21,7 +21,16 @@ class ucp_auth_link
public function main($id, $mode)
{
global $template, $phpbb_container;
global $config, $request, $template, $phpbb_container;
$auth_provider = $phpbb_container->get('auth.provider.' . $config['auth_method']);
// confirm that the auth provider supports this page
$provider_data = $auth_provider->get_auth_link_data();
if ($provider_data === null)
{
// does not support this page, throw error?
}
$error = array();
$s_hidden_fields = array();