diff options
Diffstat (limited to 'phpBB/phpbb/auth/auth.php')
| -rw-r--r-- | phpBB/phpbb/auth/auth.php | 16 | 
1 files changed, 15 insertions, 1 deletions
| diff --git a/phpBB/phpbb/auth/auth.php b/phpBB/phpbb/auth/auth.php index 279959974d..b5cc675838 100644 --- a/phpBB/phpbb/auth/auth.php +++ b/phpBB/phpbb/auth/auth.php @@ -7,6 +7,8 @@  *  */ +namespace phpbb\auth; +  /**  * @ignore  */ @@ -19,7 +21,7 @@ if (!defined('IN_PHPBB'))  * Permission/Auth class  * @package phpBB3  */ -class phpbb_auth +class auth  {  	var $acl = array();  	var $cache = array(); @@ -970,6 +972,18 @@ class phpbb_auth  				);  			} +			// If the auth provider wants us to link an empty account do so and redirect +			if ($login['status'] == LOGIN_SUCCESS_LINK_PROFILE) +			{ +				// If this status exists a fourth field is in the $login array called 'redirect_data' +				// This data is passed along as GET data to the next page allow the account to be linked + +				$params = array('mode' => 'login_link'); +				$url = append_sid($phpbb_root_path . 'ucp.' . $phpEx, array_merge($params, $login['redirect_data'])); + +				redirect($url); +			} +  			// If login succeeded, we will log the user in... else we pass the login array through...  			if ($login['status'] == LOGIN_SUCCESS)  			{ | 
