Skip to main content

Reset password using the old password (ResetPasswordWithOldPassword)

AndroidiOSPC

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

ParametersTypeDescription
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");