Table of Contents

IUserManager.GenerateChangeEmailToken Method

Generates an email change token that should be used to change the e-mail of a user.

Remarks

Call this method to generate an email change token that should be later used to effectively modify (or set) the email address for a user. The token can be used in a call to ChangeEmail method.

Syntax

Unit: Sphinx.UserManager

function IUserManager.GenerateChangeEmailToken(User: TUser; const NewEmail: string): string; virtual; abstract;

Parameters

<-> Parameter Type Description
User TUser The user to generate an email change token for.
const NewEmail string The new email address for the user.

Returns

The confirmation token used to change the email.

See also