Skip to main content

Reset password using the old password (ResetPasswordWithOldPassword)

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

Function Definition

UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static bool ResetPasswordWithOldPassword(
const FString Account,
const FString OldPassword,
const FString PhoneAreaCode,
const FString NewPassword,
const FString ExtraJson = "{}");

Parameter Instructions

ParametersTypeExplanation
AccountFStringAccount can be registered with email and phone number
OldPasswordFStringOld password
PhoneAreaCodeFStringPhone area code, for instance "86" for China.If registered with an email address, this field is empty.
NewPasswordFStringNew password.For more information, see Password Guidelines.
ExtraJsonFStringExtra information

Observers

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

Callback ID is kMethodIDAuthResetPassword.

Code example

UINTLSDKAPI::ResetPasswordWithOldPassword("youremail@sample.com", "oldpassword",  "", "newpassword");