示例#1
0
 /**
  * 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);
 }
示例#2
0
 /**
  * (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);
 }
示例#3
0
 /**
  * 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);
 }