Skip to main content

Reset Password with Verification Code (ResetPasswordWithVerifyCode)

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

Function Definition

UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static bool ResetPasswordWithVerifyCode(
const FString Account,
const FString VerifyCode,
const FString PhoneAreaCode,
const FString NewPassword);

Parameter Instructions

ParametersTypeExplanation
AccountFStringAccount can be registered with email and phone number
VerifyCodeFStringVerification Code
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.

Observers

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

Callback ID is kMethodIDAuthResetPassword.

Code example

UINTLSDKAPI::ResetPasswordWithVerifyCode("youremail@sample.com", "12345", "", "newpassword");