Reset password using the old password (ResetPasswordWithOldPassword)
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
| Parameters | Type | Explanation |
|---|---|---|
| Account | FString | Account can be registered with email and phone number |
| OldPassword | FString | Old password |
| PhoneAreaCode | FString | Phone area code, for instance "86" for China.If registered with an email address, this field is empty. |
| NewPassword | FString | New password.For more information, see Password Guidelines. |
| ExtraJson | FString | Extra 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");