Skip to main content

ResetPasswordWithOldPassword

AndroidiOSWindows
If you were looking for the method for use with Unity, 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 = "{}");

Input parameters

ParameterTypeDescription
AccountFStringAccount, which can be registered with an email address or phone number.
OldPasswordFStringOld password
PhoneAreaCodeFStringPhone area code, such as "86" for China. If you register an account with an email address, the field is left empty.
NewPasswordFStringNew password. For more information, see Password Rules.
ExtraJsonFStringExtended information

Observers

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

The callback methodID is kMethodIDAuthResetPassword.

Code sample

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