add parameter application on api reset password
This commit is contained in:
@ -257,17 +257,24 @@ export class AuthController {
|
||||
static async resetPassword(req: Request, res: Response, next: NextFunction): Promise<Response> {
|
||||
/*
|
||||
#swagger.tags = ['Auth']
|
||||
#swagger.parameters['email'] = {
|
||||
#swagger.parameters['email'] = {
|
||||
in: 'path',
|
||||
description: 'Email',
|
||||
required: true,
|
||||
type: 'string'
|
||||
}
|
||||
#swagger.parameters['application'] = {
|
||||
in: 'path',
|
||||
description: 'Application',
|
||||
required: true,
|
||||
type: 'string'
|
||||
}
|
||||
*/
|
||||
|
||||
try {
|
||||
const schema = Joi.object().keys({
|
||||
email: Joi.string().email().required().label('Email'),
|
||||
application: Joi.string().required().label('Application'),
|
||||
});
|
||||
|
||||
const param: User = await schema.validateAsync(req.params);
|
||||
@ -321,12 +328,18 @@ export class AuthController {
|
||||
static async renewToken(req: Request, res: Response, next: NextFunction): Promise<Response> {
|
||||
/*
|
||||
#swagger.tags = ['Auth']
|
||||
#swagger.parameters['refresh_token'] = {
|
||||
#swagger.parameters['refresh_token'] = {
|
||||
in: 'path',
|
||||
description: 'Refresh Token',
|
||||
required: true,
|
||||
type: 'string'
|
||||
}
|
||||
#swagger.parameters['application'] = {
|
||||
in: 'path',
|
||||
description: 'Application',
|
||||
required: true,
|
||||
type: 'string'
|
||||
}
|
||||
*/
|
||||
try {
|
||||
const schema = Joi.object().keys({
|
||||
|
||||
Reference in New Issue
Block a user