Skip to main content

Password Login (LoginWithPassword)

AndroidiOSPC

If you are using the Unity engine, see LoginWithPassword in the 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​

ParametersTypeDescription
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", "");