CoreFiles by mySites.guru
dispatcher.php61 lines, 1,307 bytes, from Joomla_4.0.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 3.10.0-alpha9
md5
42d52cd8791357ec3c8e708ae7b20460
sha1
40268bbfc14b0616027ab8c5c414895ce01117f6
sha256
3b0e491df8769d9484423fe76b32d8bd2d584201c1f92cf256cc2d912ad4e456
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_login
 *
 * @copyright   Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

use Joomla\CMS\Application\CMSApplication;
use Joomla\CMS\Dispatcher\Dispatcher;

/**
 * Dispatcher class for com_login
 *
 * @since  __DEPLOY_VERSION__
 */
class LoginDispatcher extends Dispatcher
{
	/**
	 * The extension namespace
	 *
	 * @var    string
	 *
	 * @since  __DEPLOY_VERSION__
	 */
	protected $namespace = 'Joomla\\Component\\Login';

	/**
	 * Constructor for Dispatcher
	 *
	 * @param   CMSApplication  $app    The application for the dispatcher
	 * @param   \JInput         $input  The input object
	 *
	 * @since   __DEPLOY_VERSION__
	 */
	public function __construct(CMSApplication $app, \JInput $input = null)
	{
		parent::__construct($app, $input);

		// Only accept two values login and logout for `task`
		$task = $this->input->get('task');

		if ($task != 'login' && $task != 'logout')
		{
			$this->input->set('task', '');
		}
	}

	/**
	 * com_login does not require check permission, so we override checkAccess method and have it empty
	 *
	 * @return  void
	 */
	protected function checkAccess()
	{

	}
}

No other release has this exact content. See every version of this file.