/admin/users/{user_id}/password-resets
管理员触发指定用户的密码重置流程
请求参数
| 名称 | 位置 | 类型 | 必填 | 默认值 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|---|---|
user_id |
path |
string |
是 | 用户ID |
请求体
Schema: service-identity/internal/handler/dto.HTTPResetPasswordRequest
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
new_password |
string |
是 | New password (或 hash) | ||
reset_token |
string |
是 | Reset token | ||
force_change |
boolean |
否 | Force user to change password on next login | ||
password_transmission |
string |
否 | plain|hash|symmetric|asymmetric |
响应
| 状态 | 描述 | Schema |
|---|---|---|
| 200 | 重置成功 | service-core/base/dto.SimpleResponse |
引用的 Schema
service-core/base/dto.SimpleResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
code |
integer |
否 | |||
message |
string |
否 | |||
timestamp |
string |
否 |