验证码登录(LoginWithVerifyCode)
函数定义
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);
入参说明
| 参数 | 类型 | 说明 |
|---|---|---|
| Channel | string | 自建账号的渠道,与平台账号相关,如 CustomAccount,EGame 等。 |
| 账号 | FString | 账号,支持邮箱和手机号 |
| PassWord | FString | 注册时设置的密码,已注册账号登录时应为空。更多信息,请参见 密码规则。 |
| VerifyCode | FString | 验证码 |
| PhoneAreaCode | FString | 手机区域码,比如中国为 "86",如果账号为邮箱则填空。 |
| PermissionList | FString | 权限列表。自建账号一般为空。 |
| OnlyLoginType | uint8 | 0:支持登录和注册 1:只支持登录 |
回调处理
回调处理接口是 AuthResultObserver。回调数据结构是 AuthResult。
回调 ID 是 kMethodIDAuthLogin。
代码示例
UINTLSDKAPI::LoginWithVerifyCode(EINTLLoginChannel::kChannelCustomAccount, "youremail@sample.com", "yourpassword", "12345","","");