Exemple #1
0
 /**
  * 
  * Enter description here ...
  */
 public function loginExternalAction()
 {
     $config = Zend_Registry::get('config');
     $session = new Zend_Session_Namespace($config->general->appid);
     $rota = $this->_helper->url('index', 'index', 'external');
     $session->triedroute = null;
     unset($session->triedroute);
     $result = array('redirect' => $rota, 'valid' => false);
     if ($this->getRequest()->isPost()) {
         $data = $this->getRequest()->getPost();
         $mapperSysUser = new Admin_Model_Mapper_SysUser();
         $mapperSysUser->setData($data);
         $result['valid'] = $mapperSysUser->loginExternal();
     }
     $this->_helper->json($result);
 }