Skip to main content

Reset Password with Verification Code (ResetPasswordWithVerifyCode)

[MSDK & Player Network SDK] Reset password via verification code.

Supported Platforms

Supports Android, iOS, Windows platform.

Function Definition

void ResetPasswordWithVerifyCode(
string account,
string verifyCode,
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
verifyCodestringVerification Code
phoneAreaCodestringPhone Area Code: For example, China is "86". Leave empty if the account is an email.
newPasswordstringNew password
For more information, see Password Rules.
extraJsonstringExtended information
channelstringChannel
Currently not used by Player Network SDK, can be ""
langTypestringLanguage type
Currently not used by Player Network SDK, can be ""

Callback Handling

The callback handling 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().ResetPasswordWithVerifyCode("account", "verifyCode", "86", "newPassword");