Reset Password with Verification Code (ResetPasswordWithVerifyCode)
AndroidiOSWindows
If you're using Unreal Engine, see the ResetPasswordWithVerifyCode for Unreal Engine SDK.
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
| Parameters | Type | Explanation |
|---|---|---|
| account | string | Account can be registered with email and phone number |
| verifyCode | String | Verification Code |
| phoneAreaCode | string | Phone area code, for instance "86" for China.If registered with an email address, this field is empty. |
| newPassword | string | New 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);