Skip to main content

Reset Password with Verification Code (ResetPasswordWithVerifyCode)

AndroidiOSWindows
If you're using Unreal Engine, see the ResetPasswordWithVerifyCode for Unreal Engine SDK.

Function Definition

public static void ResetPasswordWithVerifyCode(
string account,
string verifyCode,
string phoneAreaCode,
string newPassword,
string extraJson = "{}");

Parameter Instructions

ParametersTypeExplanation
accountstringAccount can be registered with email and phone number
verifyCodeStringVerification Code
phoneAreaCodestringPhone area code, for instance "86" for China.If registered with an email address, this field is empty.
newPasswordstringNew password.For more information, see Password Guidelines.

Observers

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

Callback ID is INTL_AUTH_RESET_PASSWORD.

Code example

string account = "";
string verifyCode = "";
string phoneAreaCode = "86";
string newPassword = "";

INTLAPI.ResetPasswordWithVerifyCode(account, verifyCode, phoneAreaCode, newPassword);