Skip to main content

ModifyAccountWithPassword

[MSDK & Player Network SDK] Modify account information with the original account password.

Supported Platform

Supports Android, iOS, Windows platform.

Function Definition

void ModifyAccountWithPassword(
string oldAccount,
string oldPhoneAreaCode,
string password,
string newAccount,
string newAccountVerifyCode,
string newPhoneAreaCode,
string channel = "Self",
string langType = "en_US",
string extraJson = "{}");

Input Parameters

ParameterTypeDescription
oldAccountstringOld account
oldphoneAreaCodestringPhone area code of the old account. If the account is registered with an email address, the field is left empty.
passwordstringPassword. For more information, see Password Rules.
newAccountstringNew account
newAccountVerifyCodestringVerification code of the new account
newphoneAreaCodestringPhone area code of the new account. If the account is registered with an email address, the field is left empty.
channelstringChannel
Currently not in use, pass ""
langTypestringLanguage type
Currently not in use, pass ""
extraJsonstringExtended information

Callback Processing

The callback processing API is GUAAccountResultObservers. The callback data structure is GUAAccountResult.

The callback event is AccountEvents. The callback methodID is GUA_ACCOUNT_MODIFY_ACCOUNT.

Code Sample

UnionAdapterAPI.GetAccountService().ModifyAccountWithPassword("oldAccount", "886", "password", "newAccount", "newAccountVerifyCode", "86");