Esempio n. 1
0
 public function executeConfirmNewAccount()
 {
     $this->newAccountGetData();
     $check = new CheckRequest();
     $check->checkError($this->requestObj, $this->conf["account"]["field"]);
     if (strlen($this->requestObj->user_name) != 0) {
         if (CheckUser::userExist($this->requestObj->user_name) !== false) {
             $check->setError("user_name", "isUserExist");
         }
     }
     $this->error = $check->getError();
     if ($this->error !== false) {
         $this->tpl = "account_new.tpl";
     } else {
         $this->tpl = "account_confirm.tpl";
     }
 }
Esempio n. 2
0
 private function checkLogin()
 {
     if (CheckConnection::checkConnectTCP() === false) {
         $this->error["error_field"]["E018"] = 1;
         return false;
     }
     if (strlen($this->requestObj->user_name) > 0 && strlen($this->requestObj->password) > 0) {
         $password = sha1($this->requestObj->password);
         $data = array("user_name" => $this->requestObj->user_name, "password" => $password);
         // ユーザ名存在チェック
         if (($user = CheckUser::userExist($data)) === false) {
             Logger::error("Login Error : user or password not found!!! " . Logger::getArrayMessage($data));
             $this->error["error_field"]["E017"] = 1;
         } else {
             $_SESSION["USER_DATA"] = $user;
         }
     } else {
         Logger::error("Login Error : user or password not found!!!");
         $this->error["error_field"]["E017"] = 1;
     }
 }