Skip to main content

Modify account using password (ModifyAccountWithPassword)

AndroidiOSWindows
If you're using the Unity engine, see ModifyAccountWithPassword for Unity SDK.

Function Definition

UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static bool ModifyAccountWithPassword(
const FString OldAccount,
const FString OldPhoneAreaCode,
const FString Password,
const FString NewAccount,
const FString NewAccountVerifyCode,
const FString NewPhoneAreaCode,
const FString ExtraJson = "{}");

Parameter Instructions

NameTypeExplanation
OldAccountFStringOld account
OldPhoneAreaCodeFStringOld account's phone area code, leave empty if it's an email.
PasswordFStringFor more details, see Password Rules.
NewAccountFStringNew account
NewAccountVerifyCodeFStringVerification code for new account
NewPhoneAreaCodeFStringPhone area code for the new account, leave empty if it's an email.
ExtraJsonFStringExtended information

Observers

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

Callback ID is kMethodIDAuthModifyAccount.

Code example

UINTLSDKAPI::ModifyAccountWithPassword("oldaccount@email.com", "","password", "newaccount@email.com", "12345", "");