phpBB

Code Changes

File: includes/ucp/ucp_login_link.php

  Unmodified   Added   Modified   Removed
Line 39Line 39
	*/
function main($id, $mode)
{

	*/
function main($id, $mode)
{

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

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

		global $phpbb_root_path, $phpEx;

// Initialize necessary variables

		global $phpbb_root_path, $phpEx;

// Initialize necessary variables

Line 57Line 57
		}

// Use the auth_provider requested even if different from configured

		}

// Use the auth_provider requested even if different from configured

		$auth_provider = 'auth.provider.' . $request->variable('auth_provider', $config['auth_method']);
$auth_provider = $phpbb_container->get($auth_provider);

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


// Set the link_method to login_link
$data['link_method'] = 'login_link';


// Set the link_method to login_link
$data['link_method'] = 'login_link';

Line 75Line 75
		{
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);