소스 검색

fix Valid

master
Alex Cheung 1 년 전
부모
커밋
9d856172bc
2개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  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 파일 보기

@@ -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 파일 보기

@@ -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;
}



불러오는 중...
취소
저장