ModifyAccountWithPassword
AndroidiOSWindows
If you were looking for the method for use with Unreal Engine, see ModifyAccountWithPassword for Unreal Engine SDK.
If you were looking for the method for use with Unreal Engine, see ModifyAccountWithPassword for Unreal Engine SDK.
Function definition
public void ModifyAccountWithPassword(
string oldAccount,
string oldPhoneAreaCode,
string password,
string newAccount,
string newAccountVerifyCode,
string newPhoneAreaCode,
string extraJson = "{}");
Input parameters
Parameter | Type | Description |
---|---|---|
oldAccount | string | Old account |
oldphoneAreaCode | string | Phone area code of the old account. If the account is registered with an email address, the field is left empty. |
password | string | Password. For more information, see Password Rules. |
newAccount | string | New account |
newAccountVerifyCode | string | Verification code of the new account |
newphoneAreaCode | string | Phone area code of the new account. If the account is registered with an email address, the field is left empty. |
extraJson | string | Extended information |
Observers
The callback processing interface is AuthAccountResultObserver. The callback data structure is AccountResult.
The callback methodID is INTL_AUTH_MODIFY_ACCOUNT
.
Code sample
string oldAccount = "";
string oldPhoneAreaCode = "";
string password = "";
string newAccount = "";
string newAccountVerifyCode = "";
string newPhoneAreaCode = "";
INTLAPI.ModifyAccountWithPassword(oldAccount, oldPhoneAreaCode, password, newAccount,
newAccountVerifyCode, newPhoneAreaCode);