Skip to main content

LoginWithPassword

AndroidiOSWindows
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

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.

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);