Skip to main content

Reset password using the old password (ResetPasswordWithOldPassword)

AndroidiOSWindows
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

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 information, see Password Guidelines.
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);