Skip to main content

Reset password using the old password (ResetPasswordWithOldPassword)

AndroidiOSPC

If you are using Unreal Engine, see ResetPasswordWithOldPassword in the Unreal Engine SDK.

Function definition​

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

Parameter Instructions​

ParametersTypeExplanation
accountstringAccount can be registered with email and phone number
oldPasswordstringOld password
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.
extraJsonstringExtra 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);