LoginWithVerifyCode
AndroidiOSWindows
If you were looking for the method for use with Unity, see LoginWithVerifyCode for Unity SDK.
If you were looking for the method for use with Unity, see LoginWithVerifyCode for Unity SDK.
Function definition
UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static bool LoginWithVerifyCode(
const EINTLLoginChannel Channel,
const FString Account,
const FString PassWord,
const FString VerifyCode,
const FString PhoneAreaCode,
const FString PermissionList = "",
const uint8 OnlyLoginType = 0);
Input parameters
| Parameter | Type | Description |
|---|---|---|
| Channel | string | 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 used for registration. For login, it should be an empty string. For more information, see Password Rules. |
| VerifyCode | FString | Verification Code |
| PhoneAreaCode | FString | Mobile phone area code, such as "86" for China, fill in the blanks if the account is an email. |
| PermissionList | FString | Permission list. For a custom account, the field is left empty. |
| OnlyLoginType | uint8 | 0: Supports login and registration 1: Only supports login |
Observers
The callback processing interface is AuthResultObserver. The callback data structure is AuthResult.
The callback methodID is kMethodIDAuthLogin.
Code sample
UINTLSDKAPI::LoginWithVerifyCode(EINTLLoginChannel::kChannelCustomAccount, "youremail@sample.com", "yourpassword", "12345","","");