add change password

This commit is contained in:
2026-09-09 18:53:08 +07:00
parent 4feece62c8
commit 0fb4a6f37b
10 changed files with 1161 additions and 598 deletions
@@ -2056,6 +2056,47 @@
]
}
},
"/api/users/{id}/password": {
"post": {
"summary": "Изменить чужой пароль (только администратор)",
"description": "Пароль вводится вручную: минимум 12 символов, максимум 72 байта. Сеансы сохраняются. Ошибки: 401 — нет авторизации, 403 — нет прав, 400 — неверные данные или собственный ID, 404 — пользователь не найден, 500 — ошибка сохранения.",
"operationId": "EveningDetectiveServer_ChangeUserPassword",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/evening_detective_serverChangeUserPasswordRsp"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/EveningDetectiveServerChangeUserPasswordBody"
}
}
],
"tags": [
"Пользователи"
]
}
},
"/api/users/{id}/role/add": {
"post": {
"summary": "Добавить пользователю роль",
@@ -2173,6 +2214,14 @@
}
}
},
"EveningDetectiveServerChangeUserPasswordBody": {
"type": "object",
"properties": {
"newPassword": {
"type": "string"
}
}
},
"EveningDetectiveServerDeleteUserRoleBody": {
"type": "object",
"properties": {
@@ -2495,6 +2544,9 @@
}
}
},
"evening_detective_serverChangeUserPasswordRsp": {
"type": "object"
},
"evening_detective_serverConclusion": {
"type": "object",
"properties": {