Password Login (LoginWithPassword)
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
| Parameters | Type | Explanation |
|---|---|---|
| Channel | EINTLLoginChannel | Channel for self-built accounts related to platform accounts, such as CustomAccount, EGame. |
| Account | FString | Account, supporting email and phone number |
| Password | FString | For more details, see Password Rules. |
| PhoneAreaCode | FString | Phone area code, e.g., "86" for China.If registering with an email address, this field is empty. |
| PermissionList | FString | Permission 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","");