Parcourir la source

fix Valid

master
Alex Cheung il y a 1 an
Parent
révision
9d856172bc
2 fichiers modifiés avec 7 ajouts et 2 suppressions
  1. +1
    -1
      src/pages/authentication/auth-forms/BusCustomFormWizard.js
  2. +6
    -1
      src/pages/authentication/auth-forms/CustomFormWizard.js

+ 1
- 1
src/pages/authentication/auth-forms/BusCustomFormWizard.js Voir le fichier

@@ -302,7 +302,7 @@ const BusCustomFormWizard = (props) => {
}

function handlePhone(phone) {
if (phone.length < 11) {
if (phone.length < 8) {
return false;
} else {
return true;


+ 6
- 1
src/pages/authentication/auth-forms/CustomFormWizard.js Voir le fichier

@@ -311,9 +311,10 @@ const CustomFormWizard = (props) => {
}

function handlePhone(value) {
if (value.length < 11) {
if (value.length < 8) {
return false;
} else {
console.log("Phone true")
return true;
}
}
@@ -322,6 +323,7 @@ const CustomFormWizard = (props) => {
if (value.length < 6) {
return false;
} else {
console.log("Username true")
return true;
}
}
@@ -334,6 +336,7 @@ const CustomFormWizard = (props) => {
else if (idNo.length < 7) {
return false;
} else {
console.log("IdNo true")
return true;
}
}
@@ -356,6 +359,7 @@ const CustomFormWizard = (props) => {
} else if (new_pass.length < 8) {
return false;
} else {
console.log("password true")
return true;
}
}
@@ -367,6 +371,7 @@ const CustomFormWizard = (props) => {
if (result == false) {
return false;
}
console.log("email true")
return true;
}



Chargement…
Annuler
Enregistrer