LoginWithPassword
AndroidiOSWindows
If you were looking for the method for use with Unity, see LoginWithPassword for Unity SDK.
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
| Parameter | Type | Description |
|---|---|---|
| Channel | EINTLLoginChannel | Channel of a custom account associated with the platform account, such as CustomAccount or EGame. |
| Account | FString | Account, supports email and mobile number |
| Password | FString | Password.For more information, see Password Rules. |
| PhoneAreaCode | FString | Phone area code, such as "86" for China. If you register an account with an email address, the field is left empty. |
| PermissionList | FString | Permission 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","");