From fb03f0db43ca9622faa51b8d53a9e8887ffe7d17 Mon Sep 17 00:00:00 2001 From: Pierre Date: Wed, 11 Apr 2018 11:09:59 +0200 Subject: [PATCH] Made form check more restrictive. --- assets/js/common/formChecker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/common/formChecker.js b/assets/js/common/formChecker.js index 1fdda017..a1d668ce 100644 --- a/assets/js/common/formChecker.js +++ b/assets/js/common/formChecker.js @@ -28,7 +28,7 @@ ComunicWeb.common.formChecker = { //TextInput if(inputType == "text"){ - inputOK = (input.value == "" ? false:true); + inputOK = (input.value.length < 3 ? false:true); } //MailInput @@ -38,7 +38,7 @@ ComunicWeb.common.formChecker = { //Password input else if(inputType == "password"){ - inputOK = (input.value == "" ? false:true); + inputOK = (input.value.length < 3 ? false:true); } //Unsupported input type