alfa numérico

This commit is contained in:
xXpuma99Xx
2022-01-02 17:45:29 -06:00
parent 0b04777c0c
commit 661f4985ee
10 changed files with 36 additions and 10 deletions
+6 -1
View File
@@ -12,7 +12,12 @@ const cancelar = async (body) => {
body.idServicio,
'id servicio'
);
const mensaje = validar.validarAlfanumerico(body.mensaje, 'El mensaje', 800);
const mensaje = validar.validarAlfanumerico(
body.mensaje,
'mensaje',
true,
800
);
let correoResponsable = {};
let correoAlumno = {};
let emailResponsable = '';
+2 -1
View File
@@ -24,7 +24,8 @@ const nuevo = async (body, file) => {
const programaInterno = body.programaInterno
? validar.validarAlfanumerico(
body.programaInterno,
'El texto programa interno',
'programa interno',
true,
250
)
: '';
@@ -12,7 +12,12 @@ const cancelar = async (body) => {
body.idServicio,
'id servicio'
);
const mensaje = validar.validarAlfanumerico(body.mensaje, 'El mensaje', 800);
const mensaje = validar.validarAlfanumerico(
body.mensaje,
'mensaje',
true,
800
);
let correoResponsable = {};
let correoAlumno = {};
let emailResponsable = '';
@@ -12,7 +12,12 @@ const cancelar = async (body) => {
body.idServicio,
'id servicio'
);
const mensaje = validar.validarAlfanumerico(body.mensaje, 'El mensaje', 800);
const mensaje = validar.validarAlfanumerico(
body.mensaje,
'mensaje',
true,
800
);
let correoResponsable = {};
let correoAlumno = {};
let emailResponsable = '';
@@ -12,7 +12,12 @@ const cancelar = async (body) => {
body.idServicio,
'id servicio'
);
const mensaje = validar.validarAlfanumerico(body.mensaje, 'El mensaje', 800);
const mensaje = validar.validarAlfanumerico(
body.mensaje,
'mensaje',
true,
800
);
let correoResponsable = {};
let correoAlumno = {};
let emailResponsable = '';
@@ -16,7 +16,8 @@ const registroValidado = async (body) => {
const telefono = validar.validarNumero(body.telefono, 15);
const direccion = validar.validarAlfanumerico(
body.direccion,
'La dirección',
'dirección',
false,
200
);
let correoResponsable = {};
+2 -1
View File
@@ -50,7 +50,8 @@ const update = async (body, files) => {
if (body.direccion)
dataUpdate.direccion = validar.validarAlfanumerico(
body.direccion,
'La dirección',
'dirección',
false,
200
);
if (body.telefono)