phpBB

Code Changes

File: includes/ucp/ucp_login_link.php

  Unmodified   Added   Modified   Removed
Line 57Line 57
		}

// Use the auth_provider requested even if different from configured

		}

// Use the auth_provider requested even if different from configured

 
		/* @var $provider_collection \phpbb\auth\provider_collection */

		$provider_collection = $phpbb_container->get('auth.provider_collection');
$auth_provider = $provider_collection->get_provider($request->variable('auth_provider', ''));


		$provider_collection = $phpbb_container->get('auth.provider_collection');
$auth_provider = $provider_collection->get_provider($request->variable('auth_provider', ''));


Line 75Line 76
		{
if ($request->is_set_post('login'))
{

		{
if ($request->is_set_post('login'))
{

				$login_username = $request->variable('login_username', '', false, \phpbb\request\request_interface::POST);

				$login_username = $request->variable('login_username', '', true, \phpbb\request\request_interface::POST);

				$login_password = $request->untrimmed_variable('login_password', '', true, \phpbb\request\request_interface::POST);

$login_result = $auth_provider->login($login_username, $login_password);

				$login_password = $request->untrimmed_variable('login_password', '', true, \phpbb\request\request_interface::POST);

$login_result = $auth_provider->login($login_username, $login_password);

Line 98Line 99
					else
{
// Finish login

					else
{
// Finish login

						$result = $user->session_create($login_result['user_row']['user_id'], false, false, true);

						$user->session_create($login_result['user_row']['user_id'], false, false, true);


// Perform a redirect as the account has been linked
$this->perform_redirect();


// Perform a redirect as the account has been linked
$this->perform_redirect();

Line 181Line 182
	*/
protected function process_login_result($result)
{

	*/
protected function process_login_result($result)
{

		global $config, $request, $template, $user, $phpbb_container;

		global $config, $template, $user, $phpbb_container;


$login_error = null;



$login_error = null;