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());