Verification Code Login (LoginWithVerifyCode)
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);
Parameter Instructions
| Parameters | Type | Explanation |
|---|---|---|
| Channel | String | Channel for self-built accounts related to platform accounts, such as CustomAccount, EGame. |
| Account | FString | Account, supporting email and phone number |
| PassWord | FString | Password set during registration, should be empty when logging in with a registered account.For more details, see Password Rules. |
| VerifyCode | FString | Verification code |
| PhoneAreaCode | FString | Phone area code, e.g., "86" for China. Leave empty if the account is an email. |
| PermissionList | FString | List of permissions.Usually empty for built-in accounts. |
| OnlyLoginType | uint8 | 0: Supports login and registration 1: Supports login only |
Observers
The callback processing interface is AuthResultObserver.The callback data structure is AuthResult.
The callback ID is kMethodIDAuthLogin.
Code example
UINTLSDKAPI::LoginWithVerifyCode(EINTLLoginChannel::kChannelCustomAccount, "youremail@sample.com", "yourpassword", "12345","","");