private function login()
 {
     $map = array();
     $map['user_login'] = I('post.username');
     $map['user_status'] = array('gt', 0);
     $map = array();
     $map['user_login'] = I('post.username');
     $map['user_status'] = array('gt', 0);
     $map['user_pass'] = encrypt(I('post.password'));
     $UserEvent = new \Common\Event\UserEvent();
     $loginRes = $UserEvent->auth($map);
 }
 /**
  *
  */
 protected function _initialize()
 {
     if (!RBAC::AccessDecision('Admin')) {
         // 登录检查
         RBAC::checkLogin();
         // 提示错误信息 无权限
         $httpReferer = $_SERVER['HTTP_REFERER'];
         $parsedHttpReferer = parse_url($httpReferer);
         $httpQuery = $parsedHttpReferer['query'];
         parse_str($httpQuery, $parsedHttpQuery);
         if ($parsedHttpQuery['a'] == 'login' && $parsedHttpQuery['c'] == 'login') {
             $UserEvent = new \Common\Event\UserEvent();
             $logoutRes = $UserEvent->logout();
             $this->error(L('_VALID_ACCESS_'));
         } else {
             $this->error(L('_VALID_ACCESS_'));
         }
     }
 }
 /**
  *
  */
 public function logout()
 {
     $UserEvent = new \Common\Event\UserEvent();
     $logoutRes = $UserEvent->logout();
     $this->json2Response($logoutRes);
 }