aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp/ucp_login_link.php
diff options
context:
space:
mode:
authorJoseph Warner <hardolaf@hardolaf.com>2013-07-25 14:53:05 -0400
committerJoseph Warner <hardolaf@hardolaf.com>2013-07-25 14:53:19 -0400
commit59852b5997905ed6f815c3cc4b9220872e1090d2 (patch)
treecf91ddfdc3c995bc1d7eee79b66d229ef8cf393a /phpBB/includes/ucp/ucp_login_link.php
parent317a71a8384f137cedca3c9afbb02605876920c3 (diff)
downloadforums-59852b5997905ed6f815c3cc4b9220872e1090d2.tar
forums-59852b5997905ed6f815c3cc4b9220872e1090d2.tar.gz
forums-59852b5997905ed6f815c3cc4b9220872e1090d2.tar.bz2
forums-59852b5997905ed6f815c3cc4b9220872e1090d2.tar.xz
forums-59852b5997905ed6f815c3cc4b9220872e1090d2.zip
[feature/oauth] More work on login linking accounts
PHPBB3-11673
Diffstat (limited to 'phpBB/includes/ucp/ucp_login_link.php')
-rw-r--r--phpBB/includes/ucp/ucp_login_link.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/phpBB/includes/ucp/ucp_login_link.php b/phpBB/includes/ucp/ucp_login_link.php
index 7e6374ee83..62641f0367 100644
--- a/phpBB/includes/ucp/ucp_login_link.php
+++ b/phpBB/includes/ucp/ucp_login_link.php
@@ -32,6 +32,29 @@ class ucp_login_link
$auth_provider = 'auth.provider.' . $request->variable('auth_provider', $config['auth_method']);
$auth_provider = $phpbb_container->get($auth_provider);
+ // Process POST and GET data
+ $login_error = false;
+ $login_username = '';
+
+ // Common template elements
+ $template->assign_vars(array(
+ 'PASSWORD_CREDENTIAL' => 'password',
+ 'USERNAME_CREDENTIAL' => 'username',
+ ));
+
+ // Registration template
+ $register_link = 'ucp.php?mode=register';
+
+ $template->assign_vars(array(
+ 'REGISTER_LINK' => redirect($register_link, true),
+ ));
+
+ // Link to existing account template
+ $template->assign_vars(array(
+ 'LOGIN_ERROR' => $login_error,
+ 'LOGIN_USERNAME' => $login_username,
+ ));
+
$this->tpl_name = 'ucp_login_link';
$this->page_title = 'UCP_LOGIN_LINK';
}