comentar token y sistema
This commit is contained in:
@@ -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');
|
||||
}
|
||||
} */
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user