Internet Direct (Indy) Version 9.0.1 Beta
TIdUserAccount.CheckPassword
Verifies that a value matches the stored password for the user account.

function CheckPassword(const APassword: String): Boolean;
Parameters
const APassword: String
Authentication credentials to verify for the user account.

Returns
Boolean - True when the value matches the stored password for the user account.

Description
CheckPassword is a Boolean function that verifies authentication credentials specified in APassword. CheckPassword compares the value in APassword to the Password property using the CaseSensitivePasswords setting from the TIdUserAccounts collection that owns the user account. CheckPassword returns True when the values match.

CheckPassword is used in TIdUserManager.AuthenticateUser to locate the user account and perform authentication using the specified identity and credentials.