aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp/ucp_auth_link.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/ucp/ucp_auth_link.php')
-rw-r--r--phpBB/includes/ucp/ucp_auth_link.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/phpBB/includes/ucp/ucp_auth_link.php b/phpBB/includes/ucp/ucp_auth_link.php
index 6bf74d4fbf..c1d97c8cf8 100644
--- a/phpBB/includes/ucp/ucp_auth_link.php
+++ b/phpBB/includes/ucp/ucp_auth_link.php
@@ -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();