Skip to main content

ResetPasswordWithOldPassword

AndroidiOSWindows
If you were looking for the method for use with Unreal Engine, see ResetPasswordWithOldPassword for Unreal Engine SDK.

Function definition

public void ResetPasswordWithOldPassword(
string account,
string oldPassword,
string phoneAreaCode,
string newPassword,
string extraJson = "{}");

Input parameters

ParameterTypeDescription
accountstringAccount, which can be registered with an email address or phone number.
oldPasswordstringOld password
phoneAreaCodestringPhone area code, such as "86" for China. If you register an account with an email address, the field is left empty.
newPasswordstringNew password. For more information, see Password Rules.
extraJsonstringExtended information

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 oldPassword = "";
string phoneAreaCode = "86";
string newPassword = "";

INTLAPI.ResetPasswordWithOldPassword(account, oldPassword, phoneAreaCode, newPassword);