From 6b1ad875cb9d81e60c73366a46fa2474cf47a0e0 Mon Sep 17 00:00:00 2001 From: Juan Date: Mon, 12 Mar 2018 17:18:18 +0100 Subject: [PATCH] DNI validation fix --- services/loopback/common/validations/validateDni.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/loopback/common/validations/validateDni.js b/services/loopback/common/validations/validateDni.js index 82c9ee5ef..33c8760dc 100644 --- a/services/loopback/common/validations/validateDni.js +++ b/services/loopback/common/validations/validateDni.js @@ -63,7 +63,7 @@ module.exports = function(fi, country) { let validator = validators[country]; if (!validator) - return false; + return true; return validator.regExp.test(fi) && (!validator.validate || validator.validate());