Skip to main content

Modify account using password (ModifyAccountWithPassword)

AndroidiOSWindows
If you're using 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 = "{}");

Parameter Instructions

ParametersTypeExplanation
oldAccountstringOld account
oldphoneAreaCodeStringThe phone area code of the old account.Leave empty if the account is registered via email.
passwordstringFor more details, see Password Rules.
newAccountStringNew account
newAccountVerifyCodestringVerification code for new account
newphoneAreaCodeStringPhone area code for the new account.If the account is registered via email, this will be empty.
extraJsonStringExtended information

Observers

The callback processing interface is AuthAccountResultObserver.The callback data structure is AccountResult.

The callback ID is INTL_AUTH_MODIFY_ACCOUNT.

Code example

string oldAccount = "";
string oldPhoneAreaCode = "";
string password = "";
string newAccount = "";
string newAccountVerifyCode = "";
string newPhoneAreaCode = "";

INTLAPI.ModifyAccountWithPassword(oldAccount, oldPhoneAreaCode, password, newAccount,
newAccountVerifyCode, newPhoneAreaCode);