Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: bool changePassword(string, string, Func<string, bool>)

Declaration

protected abstract bool changePassword(
    string username,
    string newPasswordHash,
    Func<string, bool> verifyOldPasswordHash
)

Summary

When overridden in a derived class, attempts to change a user’s password.

Parameters

stringusername The user whose password is to be changed.
stringnewPasswordHash The new password hash for the user.
Func<string, bool>verifyOldPasswordHash A function which, if not null, must be called to verify that the old password is valid.

Returns

true if the password was successfully changed; false if the specified user does not exist or verifyOldPasswordHash returned false indicating that the old password hash turned out to be invalid.