Skip to main content

LoginWithVerifyCode [Player Network SDK Only]

[Player Network SDK Only] Log in with a verification code.

Supported Platform

Supports Android, iOS, Windows platform.

Function Definition

void LoginWithVerifyCode(
string channel,
string account,
string password,
string verifyCode,
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().LoginWithVerifyCode("WeChat", "account", "password", "verifyCode", "86");