跳到主要内容

用验证码重置密码(ResetPasswordWithVerifyCode)

AndroidiOSWindows
如果您使用的是 Unity 引擎,请参见 Unity SDK 的 ResetPasswordWithVerifyCode。

函数定义​

UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static bool ResetPasswordWithVerifyCode(
const FString Account,
const FString VerifyCode,
const FString PhoneAreaCode,
const FString NewPassword);

入参说明​

参数类型说明
账号FString账号,可用邮箱和手机号注册
VerifyCodeFString验证码
PhoneAreaCodeFString手机区域码,例如 "86" 为中国。如果用邮件地址注册账号,字段则为空。
NewPasswordFString新的密码。更多信息,请参见 密码规则。

回调处理​

回调处理接口是 AuthAccountResultObserver。回调数据结构是 AccountResult。

回调 ID 是 kMethodIDAuthResetPassword。

代码示例​

UINTLSDKAPI::ResetPasswordWithVerifyCode("youremail@sample.com", "12345", "",  "newpassword");