Skip to main content

LoginWithPassword [Player Network SDK Only]

[Player Network SDK Only] Log in with the account password.

Supported Platform

Supports Android, iOS, Windows platform.

Function Definition

void LoginWithPassword(
string channel,
string account,
string password,
string phoneAreaCode,
string permissionList = "");

Input Parameters

ParameterTypeDescription
channelstringChannel of a custom account associated with the platform account, such as CustomAccount or EGame.
accountstringAccount, supports email and mobile number
passwordstringPassword. For more information, see Password Rules.
phoneAreaCodestringPhone area code, such as "86" for China. If you register an account with an email address, the field is left empty.
permissionListstringPermission list. For a custom account, the field is left empty.

Callback Processing

The callback processing API is GUALoginResultObservers. The callback data structure is GUALoginResult.

The callback event is LoginResultEvents. The callback methodID is GUA_ACCOUNT_LOGIN.

Code Sample

UnionAdapterAPI.GetAccountService().LoginWithPassword("WeChat", "account", "password", "86");