AccountService

EnrollTOTP 二步验证第一阶段:生成 TOTP secret 并以 pending 状态存库, 返回 secret/otpauthUrl/qrCodePngBase64;此时 2FA 尚未启用。

post/v1/account/2fa/enroll

Request body

AccountV1EnrollTOTPRequest required

Response

OK

otpAuthUrlstring

otpauth:// URI,供前端生成二维码

qrCodePngBase64string

QR 码 PNG 图片的 base64 编码(data:image/png;base64,...)

secretstring

TOTP 原文 secret(base32 编码),仅此一次展示,用户须存入 Authenticator App

Changes

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