[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package Joomla.Administrator 5 * @subpackage com_users 6 * 7 * @copyright (C) 2022 Open Source Matters, Inc. <https://www.joomla.org> 8 * @license GNU General Public License version 2 or later; see LICENSE.txt 9 */ 10 11 namespace Joomla\Component\Users\Site\Controller; 12 13 use Joomla\CMS\Router\Route; 14 use Joomla\Component\Users\Administrator\Controller\MethodsController as AdminMethodsController; 15 16 // phpcs:disable PSR1.Files.SideEffects 17 \defined('_JEXEC') or die; 18 // phpcs:enable PSR1.Files.SideEffects 19 20 /** 21 * Multi-factor Authentication methods selection and management controller 22 * 23 * @since 4.2.0 24 */ 25 class MethodsController extends AdminMethodsController 26 { 27 /** 28 * Execute a task by triggering a Method in the derived class. 29 * 30 * @param string $task The task to perform. 31 * 32 * @return mixed The value returned by the called Method. 33 * 34 * @throws \Exception 35 * @since 4.2.0 36 */ 37 public function execute($task) 38 { 39 try { 40 return parent::execute($task); 41 } catch (\Exception $e) { 42 if ($e->getCode() !== 403) { 43 throw $e; 44 } 45 46 if ($this->app->getIdentity()->guest) { 47 $this->setRedirect(Route::_('index.php?option=com_users&view=login', false)); 48 49 return null; 50 } 51 } 52 53 return null; 54 } 55 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |