/** * Handles passowrd token before dispatching. * * (non-PHPdoc) * * @see ComBaseDispatcherDefault::_actionDispatch() */ protected function _actionDispatch(KCommandContext $context) { if ($this->getController()->getIdentifier()->name === 'session' && $this->token != '') { $this->getController()->execute('tokenlogin', $context); $context->response->send(); } return parent::_actionDispatch($context); }
/** * (non-PHPdoc) * @see ComBaseDispatcher::_actionDispatch() */ protected function _actionDispatch(KCommandContext $context) { if ($this->action == 'confirm' && $this->token) { $context->data->append(array('_action' => 'confirm', 'token' => $this->token)); return $this->execute('post', $context); } return parent::_actionDispatch($context); }
/** * Handles passowrd token before dispatching * * (non-PHPdoc) * @see ComBaseDispatcherDefault::_actionDispatch() */ protected function _actionDispatch(KCommandContext $context) { if ($this->token && $this->getController()->getIdentifier()->name == 'person') { if ($this->getController()->canRead()) { $this->getController()->login(); if ($this->reset_password) { $url = JRoute::_($this->getController()->getItem()->getURL() . '&get=settings&edit=account&reset_password=1'); $this->getController()->getResponse()->location = $url; } $this->getController()->getResponse()->send(); exit(0); } } return parent::_actionDispatch($context); }