Password Login (LoginWithPassword)
Function Definition
public static void LoginWithPassword(
string channel,
string account,
string password,
string phoneAreaCode,
string permissionList = "");
Parameter Instructions
| Parameters | Type | Explanation |
|---|---|---|
| channel | string | Channel for self-built accounts related to platform accounts, such as CustomAccount, EGame. |
| account | string | Account, supporting email and phone number |
| password | String | For more details, see Password Rules. |
| phoneAreaCode | string | Phone area code, e.g., "86" for China.If registering with an email address, this field is empty. |
| permissionList | string | Permission List.Typically empty for self-built accounts. |
Observers
The callback handler interface is AuthResultObserver.The callback data structure is AuthResult.
The callback ID is INTL_AUTH_LOGIN.
Code example
string channel = INTLChannel.CustomAccount;
string account = "";
string password = "";
string phoneAreaCode = "86";
string permissionList = "";
INTLAPI.LoginWithPassword(channel, account, password, phoneAreaCode, permissionList);