comentar token y sistema

This commit is contained in:
Your Name
2025-04-21 13:54:37 -06:00
parent 6c9d003cb9
commit ee622197c1
+4 -4
View File
@@ -39,15 +39,15 @@ export class MailController {
// debe de existir un modulo para crear contraseñas para las apis y administrar esas contraseñas
if (!headers.token) {
/* if (!headers.token) {
throw new UnauthorizedException('Header "Password" es requerido');
}
} */
const sistem = await this.sistemaRepository.findOne({ where: { token: headers.token } });
/* const sistem = await this.sistemaRepository.findOne({ where: { token: headers.token } });
if (!sistem) {
throw new UnauthorizedException('Password incorrecto');
}
} */