merge
This commit is contained in:
+5
-5
@@ -10,15 +10,15 @@ import { Socket, Server } from 'socket.io';
|
||||
@WebSocketGateway({
|
||||
cors: {
|
||||
origin: [
|
||||
// 'http://localhost:3176',
|
||||
// 'http://localhost:3186',
|
||||
'http://localhost:3176',
|
||||
'http://localhost:3186',
|
||||
// 'http://132.248.80.196:3155',
|
||||
// 'http://132.248.80.196:3185',
|
||||
// 'https://pmodulospcpuma.unam.mx',
|
||||
// 'https://pmodulospcpuma.unam.mx:3015',
|
||||
'https://modulospcpuma.unam.mx',
|
||||
'https://modulospcpuma.unam.mx:3015',
|
||||
'https://betelgeuse.acatlan.unam.mx:3180',
|
||||
// 'https://modulospcpuma.unam.mx',
|
||||
// 'https://modulospcpuma.unam.mx:3015',
|
||||
// 'https://betelgeuse.acatlan.unam.mx:3180',
|
||||
],
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
import { IsNotEmpty, IsString, MaxLength } from 'class-validator';
|
||||
import { IsNotEmpty, IsString } from 'class-validator';
|
||||
|
||||
export class LoginAdminDto {
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
@MaxLength(40)
|
||||
operador: string;
|
||||
|
||||
@IsString()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { IsInt, IsNotEmpty, IsString, MaxLength } from 'class-validator';
|
||||
import { IsInt, IsNotEmpty, IsString } from 'class-validator';
|
||||
|
||||
export class LoginOperadorDto {
|
||||
@IsInt()
|
||||
@@ -6,7 +6,6 @@ export class LoginOperadorDto {
|
||||
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
@MaxLength(40)
|
||||
operador: string;
|
||||
|
||||
@IsString()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { IsNotEmpty, IsString, MaxLength } from 'class-validator';
|
||||
import { IsNotEmpty, IsString } from 'class-validator';
|
||||
|
||||
export class LoginUsuarioDto {
|
||||
@IsString()
|
||||
@@ -6,6 +6,5 @@ export class LoginUsuarioDto {
|
||||
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
@MaxLength(10)
|
||||
usuario: string;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
export class JwtPayload {
|
||||
id_operador: number;
|
||||
|
||||
nombre: string;
|
||||
|
||||
operador: string;
|
||||
|
||||
institucion: { id_institucion: number };
|
||||
|
||||
tipoUsuario: { id_tipo_usuario: number };
|
||||
|
||||
id_modulo?: number;
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
export class JwtPayload {
|
||||
id_usuario: number;
|
||||
|
||||
nombre: string;
|
||||
|
||||
usuario: string;
|
||||
|
||||
tipoUsuario: { id_tipo_usuario: number };
|
||||
|
||||
instituciones: {
|
||||
id_institucion_usuario: number;
|
||||
institucionCarrera: {
|
||||
id_institucion_carrera: number;
|
||||
institucion: { id_institucion: number };
|
||||
carrera: { id_carrera: number };
|
||||
};
|
||||
}[];
|
||||
}
|
||||
Reference in New Issue
Block a user