Skip to content

AccountPasswordActionsPageBase<TUserRow>.ChangePassword method (1 of 2)

Renders the change password page, or the set password page if the user has no password set.

public virtual ActionResult ChangePassword(IUserRetrieveService userRetriever)
parameter description
userRetriever The user retrieve service.

Return Value

The change password or set password page result.

See Also


AccountPasswordActionsPageBase<TUserRow>.ChangePassword method (2 of 2)

Changes the password of the current user after validating the old password and strength.

public virtual Result<ServiceResponse> ChangePassword(ChangePasswordRequest request, 
    ITwoLevelCache cache, IUserPasswordValidator passwordValidator, 
    IPasswordStrengthValidator passwordStrengthValidator, IUserRetrieveService userRetriever, 
    IOptions<MembershipSettings> membershipOptions, 
    IOptions<EnvironmentSettings> environmentOptions, ITextLocalizer localizer)
parameter description
request The change password request.
cache The two level cache.
passwordValidator The password validator.
passwordStrengthValidator The password strength validator.
userRetriever The user retrieve service.
membershipOptions The membership settings.
environmentOptions The environment settings.
localizer The text localizer.

Return Value

The service response.

See Also