I've got following code to log into site
    if ($this->request->isPost()) {
        $username = $this->request->getPost('username');
        $password = $this->request->getPost('password');
        $user = Users::findFirst(array(
            "(username = :username:)",
            'bind' => array('username' => $username)
        ));
        if(!$user){
            $this->flash->error('User with username ' . $username . ' not exist.');
            return $this->forward('session/index');
        }
        if(!$this->security->checkHash($password, $user->password)){
            $this->flash->error('Wrong password');
            return $this->forward('session/index');
        }
        $this->_registerSession($user);
        $this->flash->success('Welcome ' . $user->fullname);
        return $this->forward('dashboard/index');
      }I can connect to db because when I try $user->password I;m getting correct hashed password from db and also $password return correct password that user have put into input.
Why it return false on checkHash?