Ejemplo n.º 1
0
 private function saveLoginStatus(LoginBean $loginBean, $valid)
 {
     if (!$valid) {
         return;
     }
     $this->ci->session->set_userdata('userAccount', $loginBean->getUserAccount());
 }
Ejemplo n.º 2
0
 /**
  * tologin 
  * 用户登陆跳转
  * @access public
  * @return void
  */
 public function tologin()
 {
     $error = array("succ" => FALSE, "errorMsg" => array());
     $loginBean = new LoginBean();
     $loginBean->setUserAccount($this->input->post('user.account', ''));
     $loginBean->setUserPassword($this->input->post('user.password', ''));
     $loginBean->setIdentifyingCode($this->input->post('identifyingCode', ''));
     $loginBoImpl = new LoginBoImpl();
     $loginBoImpl->tologin($loginBean);
     // $userBo = new UserBoImpl();
     // PlatformLogBoImpl::logError("get list failed!r=1","ssssss1",__CLASS__,__LINE__,__FUNCTION__);
     // $this->session->set_userdata('some_name', 'some_value');
     // var_dump($this->session->userdata());
     // var_dump($this->userModel->select('*')->where('user_name', '张蔚')->as_value()->find());
     die;
 }