Impl /auth/user/change/password

This commit is contained in:
2022-10-14 01:45:11 +00:00
committed by GitHub
parent d10e1b4571
commit 5034616ab8
5 changed files with 197 additions and 3 deletions

View File

@@ -11,16 +11,20 @@
* 路径: `/api/auth/user/add``/auth/user/add`
* 方法: `GET``POST`
* RESTful: `PUT /api/auth/user``PUT /auth/user`
* 鉴权: 一般需要(如服务器状态内的`has_root_user``false`则无需鉴权)
* 鉴权: 一般需要(如服务器状态内的`has_root_user``false`则无需鉴权,如需要仅限管理员
## 更新用户
* 路径: `/api/auth/user/update``/auth/user/update`
* 方法: `GET``POST`
* RESTful: `PATCH /api/auth/user``PATCH /auth/user`
* 鉴权: 需要
* 鉴权: 需要(仅管理员)
## 修改用户名字
* 路径: `/api/auth/user/change/name``/auth/user/change/name`
* 方法: `GET``POST`
* 鉴权: 需要
## 修改用户密码
* 路径: `/api/auth/user/change/password``/auth/user/change/password`
* 方法: `GET``POST`
* 鉴权: 需要
## 获取Token
* 路径: `/api/auth/token/add``/auth/token/add`
* 方法: `GET``POST`