---
title: "重置密码"
method: POST
path: "/auth/reset-password"
tags: ["认证"]
---

# 重置密码

`POST /auth/reset-password`

用户重置自己的密码

## Request body

- DtoUserPasswordResetRequest
  - `newPassword` string, required
  - `oldPassword` string, required

## Response `200`

密码重置成功

- ModelSuccessResponseNoData — 成功的API响应标准格式,没有 data
  - `code` integer
  - `message` string
  - `requestId` string
  - `success` boolean
  - `timestamp` string

## Other responses

- `400` — 请求参数错误或原密码错误
- `401` — 未授权访问
- `500` — 服务器内部错误

---

[API](https://skmtc.net/labring/apis/ruiqi-waf-api.md) · [All operations](https://skmtc.net/labring/apis/ruiqi-waf-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/labring/ruiqi-waf-api/revisions/aaacd7e06a88/schema)
