Skip to main content

Password Login (LoginWithPassword)

AndroidiOSWindows
If you're using the Unity engine, see LoginWithPassword for Unity SDK.

Function Definition

UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static bool LoginWithPassword(
const EINTLLoginChannel Channel,
const FString Account,
const FString PassWord,
const FString PhoneAreaCode,
const FString PermissionList = "");

Parameter Instructions

ParametersTypeExplanation
ChannelEINTLLoginChannelChannel for self-built accounts related to platform accounts, such as CustomAccount, EGame.
AccountFStringAccount, supporting email and phone number
PasswordFStringFor more details, see Password Rules.
PhoneAreaCodeFStringPhone area code, e.g., "86" for China.If registering with an email address, this field is empty.
PermissionListFStringPermission List.Typically empty for self-built accounts.

Observers

The callback processing interface is AuthResultObserver.The callback data structure is AuthResult.

The callback ID is kMethodIDAuthLogin.

Code example

UINTLSDKAPI::LoginWithPassword(EINTLLoginChannel::kChannelCustomAccount, "youremail@sample.com", "yourpassword","");