Exemple #1
0
 /**
  *
  * @return integer
  */
 private function getUserId() : int
 {
     $this->query->setQuery('user')->findBy($this->column, $this->login);
     $result = $this->query->getStaticQuery();
     if (count($result) === 1 && HashPass::verifyPassword($this->password, $result[0]->getPassword())) {
         $this->userEntity = $result[0];
         return $this->userEntity->getId();
     }
     return 0;
 }