A AuthMS API Wiki API Reference iam.tianv.com →

POST /auth/recover-account/reset

使用账户恢复验证码验证通过后,设置新密码,完成账户恢复和密码重置。参考:NIST SP 800-63B §5.1.1.2。

身份认证 None application/json

Request Body

Schema: dto.RecoverAccountResetRequest

FieldTypeRequiredExampleConstraintsDescription
code string Yes
identity string Yes
new_password string Yes length: 8–32

Responses

StatusDescriptionSchema
200密码重置成功dto.RecoverAccountResetResponse
400请求参数无效或验证码已过期gitee_com_linmes_authms_base_dto.SimpleResponse
500服务器内部错误gitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.RecoverAccountResetResponse

FieldTypeRequiredExampleConstraintsDescription
message string No

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No