Skip to main content

LoginWithVerifyCode

AndroidiOSWindows
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​

ParameterTypeDescription
ChannelstringChannel of a custom account associated with the platform account, such as CustomAccount or EGame.
AccountFStringAccount, supports email and mobile number
PassWordFStringPassword used for registration. For login, it should be an empty string. For more information, see Password Rules.
VerifyCodeFStringVerification Code
PhoneAreaCodeFStringMobile phone area code, such as "86" for China, fill in the blanks if the account is an email.
PermissionListFStringPermission list. For a custom account, the field is left empty.
OnlyLoginTypeuint80: 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","","");