Skip to main content

Reset password using the old password (ResetPasswordWithOldPassword)

[MSDK & Player Network SDK] Reset your password using your old password.

Supported platforms

Supports Android, iOS, Windows platform.

Function Definition

void ResetPasswordWithOldPassword(
string account,
string oldPassword,
string phoneAreaCode,
string newPassword,
string channel = "Self",
string langType = "en_US",
string extraJson = "{}");

Input Parameters

ParametersTypeDescription
accountstringAccount can be registered with email and phone number
oldPasswordstringOld password
phoneAreaCodestringPhone area code example "86" for China, leave empty if the account is an email.
newPasswordstringNew password
For more information, see Password Rules .
extraJsonstringExtended information
channelstringChannel
Player Network SDK does not currently use this, can be set to ""
langTypestringLanguage type
Currently not used by Player Network SDK, can be ""

Callback Handling

The callback handler interface is GUAAccountResultObservers.The callback data structure is GUAAccountResult.

The callback event is AccountEvents. The callback ID is GUA_ACCOUNT_RESET_PASSWORD.

Code Example

UnionAdapterAPI.GetAccountService().ResetPasswordWithOldPassword("account", "oldPassword", "86", "newPassword");