public function verifyPassword($username, $password)
    {
        $this->find("username", $username);
        return password_verify($password, $this->password);
    }
public function verifyPassword($username, $password)
    {
        $this->find("username", $username);
        return password_verify($password, $this->password);
    }
public function verifyPassword ( $ username , $ password ) { $ this -> find ( "username" , $ username ) ; return password_verify ( $ password , $ this -> password ) ; }
Verify the username and the password, if successful the object contains
all details from the database row.

@param string $username  username to check.
@param string $password the password to use.

@return boolean true if username and password matches, else false.
Verify the username and the password if successful the object contains all details from the database row .