pls check below logincheck function for $this->security->checkHash,why unable get value for $res.
public function logincheckAction(){ if($this->request->isPost()) { $name = $this->request->getPost("name"); $password = $this->request->getPost("password"); $user =Users::findFirstByName($name); echo $user->password."<br/>"; echo $password;
$res=$this->security->checkHash($password, $user->password) ;
echo $res;
}
}