docker ignore, ignore tar file, commet mail controller, docker compose pentester
This commit is contained in:
@@ -33,7 +33,12 @@ export class MailController {
|
||||
@Headers() headers:{password:string},
|
||||
@Body() body: { to: string; subject: string; text: string; fecha_recibido: Date }) {
|
||||
|
||||
|
||||
/*
|
||||
|
||||
// esta parte hay que rehacerla, se tiene que obtener la contraseña del sistema en base a la clave del sistema.
|
||||
// debe de existir un modulo para crear contraseñas para las apis y administrar esas contraseñas
|
||||
|
||||
|
||||
if (!headers.password) {
|
||||
throw new UnauthorizedException('Header "Password" es requerido');
|
||||
}
|
||||
@@ -42,12 +47,12 @@ export class MailController {
|
||||
|
||||
if (!sistem) {
|
||||
throw new UnauthorizedException('Password incorrecto');
|
||||
}
|
||||
} */
|
||||
|
||||
|
||||
const { to, subject, text, fecha_recibido } = body;
|
||||
|
||||
const result = await this.mailService.sendMail(to, subject, text, fecha_recibido,sistem);
|
||||
const result = await this.mailService.sendMail(to, subject, text, fecha_recibido,1); // sistem
|
||||
return result;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user