MINARA

禁用 TOTP

POST /v1/security/totp/disable:关闭 TOTP,但不移除设备绑定。

POST /v1/security/totp/disable

关闭 TOTP,但不移除设备绑定。需要新的 TOTP 代码和新的邮箱验证码,防止仅凭被盗的验证器就关闭双重验证。

方法POST
路径/v1/security/totp/disable
认证设置 GATEWAY_AUTH_TOKEN 时需要 Authorization: Bearer <token>
类别auth

说明

失败时返回 { error, status, message },其中 error 是稳定的机器码。第二因子被拒会映射到一组固定值:invalid_totptotp_requiredinvalid_email_codeemail_code_requiredverification_locked(邮箱验证码错误次数过多,message 会给出等待时长)、totp_state_conflict(账户已处于请求的状态)、totp_not_provisioned(尚未生成密钥)、rate_limited。请求体不合法时返回 400,error 按端点分别为 totp_code_requiredtotp_and_email_requiredsettings_payload_invalid。网关无法归类的失败保留该端点自身的 <action>_failed,并配一条通用文案;上游原文只写入服务端日志。

本页目录