Skip to main content

Modify account using password (ModifyAccountWithPassword)

AndroidiOSPC

If you are using the Unity engine, see ModifyAccountWithPassword in the 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​

NameTypeDescription
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", "");