Skip to main content

Modify account using password (ModifyAccountWithPassword)

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

Supported platforms

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

ParametersTypeDescription
oldAccountstringOld account
oldphoneAreaCodestringPhone area code for the old account.If the account is registered via email, this will be empty.
passwordstringFor more information, see Password Guidelines.
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.
channelstringChannel
Currently not used by Player Network SDK, can be set to ""
langTypestringLanguage type
Currently not used by Player Network SDK, can be ""
extraJsonstringExtended information

Callback Handling

The callback handling interface is GUAAccountResultObservers.The callback data structure is GUAAccountResult.

The callback event is AccountEvents. Callback ID is GUA_ACCOUNT_MODIFY_ACCOUNT.

Code Example

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