Skip to main content

LoginWithPassword

AndroidiOSWindows
If you were looking for the method for use with Unity, 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 = "");

Input parameters

ParameterTypeDescription
ChannelEINTLLoginChannelChannel of a custom account associated with the platform account, such as CustomAccount or EGame.
AccountFStringAccount, supports email and mobile number
PasswordFStringPassword.For more information, see Password Rules.
PhoneAreaCodeFStringPhone area code, such as "86" for China. If you register an account with an email address, the field is left empty.
PermissionListFStringPermission 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 kMethodIDAuthLogin.

Code sample

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