ResetPasswordWithVerifyCode
AndroidiOSWindows
If you were looking for the method for use with Unreal Engine, see ResetPasswordWithVerifyCode for Unreal Engine SDK.
If you were looking for the method for use with Unreal Engine, see ResetPasswordWithVerifyCode for Unreal Engine SDK.
Function definition
public static void ResetPasswordWithVerifyCode(
string account,
string verifyCode,
string phoneAreaCode,
string newPassword,
string extraJson = "{}");
Input parameters
Parameter | Type | Description |
---|---|---|
account | string | Account, which can be registered with an email address or phone number. |
verifyCode | string | Verification code |
phoneAreaCode | string | Phone area code, such as "86" for China. If you register an account with an email address, the field is left empty. |
newPassword | string | New password. For more information, see Password Rules. |
Observers
The callback processing interface is AuthAccountResultObserver. The callback data structure is AccountResult.
The callback methodID is INTL_AUTH_RESET_PASSWORD
.
Code sample
string account = "";
string verifyCode = "";
string phoneAreaCode = "86";
string newPassword = "";
INTLAPI.ResetPasswordWithVerifyCode(account, verifyCode, phoneAreaCode, newPassword);