src/Password/PhpbbPassword.php
public function verify($password, $hash) {
        if (strlen($hash) == 34) {
            return ($this->cryptPrivate($password, $hash) === $hash) ? true : false;
        }

        return (md5($password) === $hash) ? true : false;
    }
public function verify($password, $hash) {
        if (strlen($hash) == 34) {
            return ($this->cryptPrivate($password, $hash) === $hash) ? true : false;
        }

        return (md5($password) === $hash) ? true : false;
    }
Check for a correct password.

@param string $password The password in plain text.
@param string $hash The stored password hash.
@return bool Returns true if the password is correct, false if not.