IUserManager.ChangeEmail Method
Changes the user email, using the provided email change token.
Remarks
This method changes the user email to the value specified by NewEmail, if the Token is a valid email chnge token. If the token is invalid, an exception is raised.
Syntax
Unit: Sphinx.UserManager
procedure IUserManager.ChangeEmail(User: TUser; const Token: string; const NewEmail: string); virtual; abstract;
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
User | TUser | The user which the email wille change. |
|
const | Token | string | The email change token to be used. |
const | NewEmail | string | The new email address of the user. |