mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[feature/oauth] Add method to return necessary data for auth_link
PHPBB3-11673
This commit is contained in:
@@ -21,7 +21,16 @@ class ucp_auth_link
|
|||||||
|
|
||||||
public function main($id, $mode)
|
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();
|
$error = array();
|
||||||
$s_hidden_fields = array();
|
$s_hidden_fields = array();
|
||||||
|
@@ -62,6 +62,14 @@ abstract class phpbb_auth_provider_base implements phpbb_auth_provider_interface
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
|
public function get_auth_link_data()
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user