docker ignore, ignore tar file, commet mail controller, docker compose pentester

This commit is contained in:
Your Name
2025-03-28 08:21:43 -06:00
parent cac702af43
commit 71e39eb65e
4 changed files with 50 additions and 3 deletions
+8 -3
View File
@@ -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;