Skip to main content

Reset Password with Verification Code (ResetPasswordWithVerifyCode)

AndroidiOSPC

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

ParametersTypeDescription
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 details, see Password Rules.

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