Table of Contents

TDefaultPasswordHasher.VerifyHashedPassword Method

Verifies a provided password against the user's stored hash.

Syntax

Unit: Sphinx.DefaultPasswordHasher

function TDefaultPasswordHasher.VerifyHashedPassword(User: TUser; const HashedPassword: string; const ProvidedPassword: string): Boolean; virtual;

Parameters

<-> Parameter Type Description
User TUser The user being authenticated; the stored hash is read from its password hash.
const HashedPassword string The stored hash, present for interface compatibility.
const ProvidedPassword string The plain-text password to verify.

Returns

True if the password matches the stored hash; otherwise False.

See also