AccountService

验证码登录

使用手机号或邮箱验证码登录;目标账号不存在时自动注册。 验证码最多允许 5 次错误尝试,超出后需重新发送。已开启 2FA 的账号返回 twoFaRequired=true 与 twoFaToken。

post/v1/account/login/code

Request body

codestring required

6 位数字验证码

targetstring required

手机号(type=phone)或邮箱地址(type=email)

type'phone' | 'email' required

验证码类型:phone 短信验证码 / email 邮箱验证码

Response

OK

twoFaRequiredboolean

是否需要二步验证(true 时 auth 为空)

twoFaTokenstring

临时 token,用于后续 Verify2FA(two_fa_required=true 时有效)

Changes

No recorded changes to this endpoint across all 1 revision of this API.