LoginWithPassword
AndroidiOSWindows
If you were looking for the method for use with Unreal Engine, see LoginWithPassword for Unreal Engine SDK.
If you were looking for the method for use with Unreal Engine, see LoginWithPassword for Unreal Engine SDK.
Function definition
public static void LoginWithPassword(
string channel,
string account,
string password,
string phoneAreaCode,
string permissionList = "");
Input parameters
| Parameter | Type | Description |
|---|---|---|
| channel | string | Channel of a custom account associated with the platform account, such as CustomAccount or EGame. |
| account | string | Account, supports email and mobile number |
| password | string | Password. For more information, see Password Rules. |
| phoneAreaCode | string | Phone area code, such as "86" for China. If you register an account with an email address, the field is left empty. |
| permissionList | string | Permission list. For a custom account, the field is left empty. |
Observers
The callback processing interface is AuthResultObserver. The callback data structure is AuthResult.
The callback methodID is INTL_AUTH_LOGIN.
Code sample
string channel = INTLChannel.CustomAccount;
string account = "";
string password = "";
string phoneAreaCode = "86";
string permissionList = "";
INTLAPI.LoginWithPassword(channel, account, password, phoneAreaCode, permissionList);