mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-19 01:17:18 +02:00
fix: rename duplicate operation IDs (#1778)
This commit is contained in:
parent
4dec126199
commit
b67aca8fbf
@ -84,12 +84,12 @@ export default class UserAdminController extends Controller {
|
|||||||
this.route({
|
this.route({
|
||||||
method: 'post',
|
method: 'post',
|
||||||
path: '/validate-password',
|
path: '/validate-password',
|
||||||
handler: this.validatePassword,
|
handler: this.validateUserPassword,
|
||||||
permission: NONE,
|
permission: NONE,
|
||||||
middleware: [
|
middleware: [
|
||||||
openApiService.validPath({
|
openApiService.validPath({
|
||||||
tags: ['admin'],
|
tags: ['admin'],
|
||||||
operationId: 'validatePassword',
|
operationId: 'validateUserPassword',
|
||||||
requestBody: createRequestSchema('passwordSchema'),
|
requestBody: createRequestSchema('passwordSchema'),
|
||||||
responses: { 200: emptyResponse },
|
responses: { 200: emptyResponse },
|
||||||
}),
|
}),
|
||||||
@ -99,12 +99,12 @@ export default class UserAdminController extends Controller {
|
|||||||
this.route({
|
this.route({
|
||||||
method: 'post',
|
method: 'post',
|
||||||
path: '/:id/change-password',
|
path: '/:id/change-password',
|
||||||
handler: this.changePassword,
|
handler: this.changeUserPassword,
|
||||||
permission: ADMIN,
|
permission: ADMIN,
|
||||||
middleware: [
|
middleware: [
|
||||||
openApiService.validPath({
|
openApiService.validPath({
|
||||||
tags: ['admin'],
|
tags: ['admin'],
|
||||||
operationId: 'changePassword',
|
operationId: 'changeUserPassword',
|
||||||
requestBody: createRequestSchema('passwordSchema'),
|
requestBody: createRequestSchema('passwordSchema'),
|
||||||
responses: { 200: emptyResponse },
|
responses: { 200: emptyResponse },
|
||||||
}),
|
}),
|
||||||
@ -114,12 +114,12 @@ export default class UserAdminController extends Controller {
|
|||||||
this.route({
|
this.route({
|
||||||
method: 'post',
|
method: 'post',
|
||||||
path: '/reset-password',
|
path: '/reset-password',
|
||||||
handler: this.resetPassword,
|
handler: this.resetUserPassword,
|
||||||
permission: ADMIN,
|
permission: ADMIN,
|
||||||
middleware: [
|
middleware: [
|
||||||
openApiService.validPath({
|
openApiService.validPath({
|
||||||
tags: ['admin'],
|
tags: ['admin'],
|
||||||
operationId: 'resetPassword',
|
operationId: 'resetUserPassword',
|
||||||
requestBody: createRequestSchema('idSchema'),
|
requestBody: createRequestSchema('idSchema'),
|
||||||
responses: {
|
responses: {
|
||||||
200: createResponseSchema('resetPasswordSchema'),
|
200: createResponseSchema('resetPasswordSchema'),
|
||||||
@ -216,7 +216,7 @@ export default class UserAdminController extends Controller {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async resetPassword(
|
async resetUserPassword(
|
||||||
req: IAuthRequest<unknown, ResetPasswordSchema, IdSchema>,
|
req: IAuthRequest<unknown, ResetPasswordSchema, IdSchema>,
|
||||||
res: Response<ResetPasswordSchema>,
|
res: Response<ResetPasswordSchema>,
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
@ -392,7 +392,7 @@ export default class UserAdminController extends Controller {
|
|||||||
res.status(200).send();
|
res.status(200).send();
|
||||||
}
|
}
|
||||||
|
|
||||||
async validatePassword(
|
async validateUserPassword(
|
||||||
req: IAuthRequest<unknown, unknown, PasswordSchema>,
|
req: IAuthRequest<unknown, unknown, PasswordSchema>,
|
||||||
res: Response,
|
res: Response,
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
@ -402,7 +402,7 @@ export default class UserAdminController extends Controller {
|
|||||||
res.status(200).send();
|
res.status(200).send();
|
||||||
}
|
}
|
||||||
|
|
||||||
async changePassword(
|
async changeUserPassword(
|
||||||
req: IAuthRequest<{ id: string }, unknown, PasswordSchema>,
|
req: IAuthRequest<{ id: string }, unknown, PasswordSchema>,
|
||||||
res: Response,
|
res: Response,
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
|
@ -5042,7 +5042,7 @@ If the provided project does not exist, the list of events will be empty.",
|
|||||||
},
|
},
|
||||||
"/api/admin/user-admin/reset-password": Object {
|
"/api/admin/user-admin/reset-password": Object {
|
||||||
"post": Object {
|
"post": Object {
|
||||||
"operationId": "resetPassword",
|
"operationId": "resetUserPassword",
|
||||||
"requestBody": Object {
|
"requestBody": Object {
|
||||||
"content": Object {
|
"content": Object {
|
||||||
"application/json": Object {
|
"application/json": Object {
|
||||||
@ -5093,7 +5093,7 @@ If the provided project does not exist, the list of events will be empty.",
|
|||||||
},
|
},
|
||||||
"/api/admin/user-admin/validate-password": Object {
|
"/api/admin/user-admin/validate-password": Object {
|
||||||
"post": Object {
|
"post": Object {
|
||||||
"operationId": "validatePassword",
|
"operationId": "validateUserPassword",
|
||||||
"requestBody": Object {
|
"requestBody": Object {
|
||||||
"content": Object {
|
"content": Object {
|
||||||
"application/json": Object {
|
"application/json": Object {
|
||||||
@ -5207,7 +5207,7 @@ If the provided project does not exist, the list of events will be empty.",
|
|||||||
},
|
},
|
||||||
"/api/admin/user-admin/{id}/change-password": Object {
|
"/api/admin/user-admin/{id}/change-password": Object {
|
||||||
"post": Object {
|
"post": Object {
|
||||||
"operationId": "changePassword",
|
"operationId": "changeUserPassword",
|
||||||
"parameters": Array [
|
"parameters": Array [
|
||||||
Object {
|
Object {
|
||||||
"in": "path",
|
"in": "path",
|
||||||
|
Loading…
Reference in New Issue
Block a user