Reset password using the old password (ResetPasswordWithOldPassword)
AndroidiOSWindows
If you're using Unreal Engine, see ResetPasswordWithOldPassword for Unreal Engine SDK.
If you're using Unreal Engine, see ResetPasswordWithOldPassword for Unreal Engine SDK.
Function Definition
public void ResetPasswordWithOldPassword(
string account,
string oldPassword,
string phoneAreaCode,
string newPassword,
string extraJson = "{}");
Parameter Instructions
| Parameters | Type | Explanation |
|---|---|---|
| account | string | Account can be registered with email and phone number |
| oldPassword | string | Old password |
| 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. |
| extraJson | string | Extra information |
Observers
The callback processing interface is AuthAccountResultObserver.The callback data structure is AccountResult.
Callback ID is INTL_AUTH_RESET_PASSWORD.
Code example
string account = "";
string oldPassword = "";
string phoneAreaCode = "86";
string newPassword = "";
INTLAPI.ResetPasswordWithOldPassword(account, oldPassword, phoneAreaCode, newPassword);