Table of Contents

IUserManager.ChangePassword Method

Changes the user password to a new value, using the provided password change token.

Remarks

This method change the user password to the value provided by NewPassword, if the Token is a valid password change token. If the token is invalid, an exception is raised. If NewPassword is not a valid one (do not pass password validations), an exception will be raised.

Syntax

Unit: Sphinx.UserManager

procedure IUserManager.ChangePassword(User: TUser; const Token: string; const NewPassword: string); virtual; abstract;

Parameters

<-> Parameter Type Description
User TUser The user which the password should be changed.
const Token string The password change token to be used.
const NewPassword string The new password for the user.

See also