IUserManager.GenerateChangePhoneNumberToken Method
Generates a phone number change token that should be used to change the phone number of a user.
Remarks
Call this method to generate a phone number change token that should be later used to effectively modify (or set) the phone number for a user. The token can be used in a call to ChangePhoneNumber method.
Syntax
Unit: Sphinx.UserManager
function IUserManager.GenerateChangePhoneNumberToken(User: TUser; const NewPhoneNumber: string): string; virtual; abstract;
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
User | TUser | The user to generate a phone number change token for. |
|
const | NewPhoneNumber | string | The new phone number for the user. |
Returns
The confirmation token used to change the phone number.