Example #1
0
 /**
  * 检查用户信息合法性
  *
  * @return string
  */
 private function checkUserInfo()
 {
     $identify = $this->getInput('_statu', 'get');
     !$identify && ($identify = $this->getInput('_statu', 'post'));
     if (!$identify) {
         $this->showError('USER:illegal.request');
     }
     list($identify, $url, $rememberme) = explode('|', base64_decode($identify) . '|');
     list($uid, $password) = PwLoginService::parseLoginIdentify(rawurldecode($identify));
     // 		$info = $this->_getUserDs()->getUserByUid($uid, PwUser::FETCH_MAIN);
     $this->loginUser = new PwUserBo($uid);
     if (!$this->loginUser->isExists() || Pw::getPwdCode($this->loginUser->info['password']) != $password) {
         $this->showError('USER:illegal.request');
     }
     return base64_encode($identify . '|' . $url . '|' . $rememberme);
 }