modulo en token
This commit is contained in:
@@ -53,6 +53,8 @@ export class AuthService {
|
||||
throw new UnauthorizedException(
|
||||
'Esta cuenta se encuentra desactivada.',
|
||||
);
|
||||
if (data.operador.tipoUsuario.id_tipo_usuario === 4)
|
||||
data.operador.id_modulo = modulo.id_modulo;
|
||||
return { token: this.jwtService.sign(data.operador) };
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user