validar número
This commit is contained in:
@@ -17,7 +17,7 @@ const registroValidado = async (body) => {
|
||||
'fecha de nacimiento',
|
||||
false
|
||||
);
|
||||
const telefono = validar.validarNumero(body.telefono, 15);
|
||||
const telefono = validar.validarNumero(body.telefono, 'teléfono', true, 15);
|
||||
const direccion = validar.validarAlfanumerico(
|
||||
body.direccion,
|
||||
'dirección',
|
||||
|
||||
Reference in New Issue
Block a user