src/UthandoUser/Crypt/Password/Password.php
public function verify($password, $hash)
    {
        $verify = password_verify($password, $hash);

        if (true === $verify && $this->isRehashIfNeeded() && $this->needsRehash($hash)) {
            $newHash = $this->create($password);
            $verify = [
                'verify' => true,
                'hash' => $newHash,
            ];
        }

        return $verify;
    }
public function verify($password, $hash)
    {
        $verify = password_verify($password, $hash);

        if (true === $verify && $this->isRehashIfNeeded() && $this->needsRehash($hash)) {
            $newHash = $this->create($password);
            $verify = [
                'verify' => true,
                'hash' => $newHash,
            ];
        }

        return $verify;
    }
Verify if a password is correct against a hash value.

@param string $password
@param string $hash
@return bool|array