Skip to main content

Reset Password with Verification Code (ResetPasswordWithVerifyCode)

AndroidiOSPC

If you are using Unreal Engine, see ResetPasswordWithVerifyCode in the 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 details, see Password Rules.

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