|
|
@ -56,11 +56,21 @@ export const AccountFindPassword = props => { |
|
|
|
}, []); |
|
|
|
}, []); |
|
|
|
|
|
|
|
|
|
|
|
const handlerSend = async() => { |
|
|
|
const handlerSend = async() => { |
|
|
|
if(!inputId || !inputHpno) { |
|
|
|
if(!inputId) { |
|
|
|
setModal({ |
|
|
|
setModal({ |
|
|
|
isOpen: true, |
|
|
|
isOpen: true, |
|
|
|
title: '인증번호 발송', |
|
|
|
title: '인증번호 발송', |
|
|
|
desc: '빈칸을 채워주세요.', |
|
|
|
desc: '아이디를 입력해 주세요.', |
|
|
|
|
|
|
|
color: 'modal-danger' |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(!inputHpno) { |
|
|
|
|
|
|
|
setModal({ |
|
|
|
|
|
|
|
isOpen: true, |
|
|
|
|
|
|
|
title: '인증번호 발송', |
|
|
|
|
|
|
|
desc: '휴대폰 번호를 입력해 주세요.', |
|
|
|
color: 'modal-danger' |
|
|
|
color: 'modal-danger' |
|
|
|
}) |
|
|
|
}) |
|
|
|
return; |
|
|
|
return; |
|
|
@ -126,6 +136,12 @@ export const AccountFindPassword = props => { |
|
|
|
setIsRunning(false); |
|
|
|
setIsRunning(false); |
|
|
|
// setValue('crtfyNo', '');
|
|
|
|
// setValue('crtfyNo', '');
|
|
|
|
// setCrtfyNo('');
|
|
|
|
// setCrtfyNo('');
|
|
|
|
|
|
|
|
setModal({ |
|
|
|
|
|
|
|
isOpen: true, |
|
|
|
|
|
|
|
title: '인증번호 만료', |
|
|
|
|
|
|
|
desc: '인증번호가 만료되었습니다.', |
|
|
|
|
|
|
|
color: 'modal-danger' |
|
|
|
|
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
}, 1000); |
|
|
|
}, 1000); |
|
|
|
|
|
|
|
|
|
|
@ -137,11 +153,21 @@ export const AccountFindPassword = props => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const handlerConfirm = async() => { |
|
|
|
const handlerConfirm = async() => { |
|
|
|
if(!inputId || !inputHpno) { |
|
|
|
if(!inputId) { |
|
|
|
setModal({ |
|
|
|
setModal({ |
|
|
|
isOpen: true, |
|
|
|
isOpen: true, |
|
|
|
title: '인증번호 인증', |
|
|
|
title: '인증번호 발송', |
|
|
|
desc: '빈칸을 채워주세요.', |
|
|
|
desc: '아이디를 입력해 주세요.', |
|
|
|
|
|
|
|
color: 'modal-danger' |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(!inputHpno) { |
|
|
|
|
|
|
|
setModal({ |
|
|
|
|
|
|
|
isOpen: true, |
|
|
|
|
|
|
|
title: '인증번호 발송', |
|
|
|
|
|
|
|
desc: '휴대폰 번호를 입력해 주세요.', |
|
|
|
color: 'modal-danger' |
|
|
|
color: 'modal-danger' |
|
|
|
}) |
|
|
|
}) |
|
|
|
return; |
|
|
|
return; |
|
|
@ -183,7 +209,7 @@ export const AccountFindPassword = props => { |
|
|
|
setModal({ |
|
|
|
setModal({ |
|
|
|
isOpen: true, |
|
|
|
isOpen: true, |
|
|
|
title: '비밀번호 변경', |
|
|
|
title: '비밀번호 변경', |
|
|
|
desc: '빈칸을 채워주세요.', |
|
|
|
desc: '비밀번호를 입력해 주세요.', |
|
|
|
color: 'modal-danger' |
|
|
|
color: 'modal-danger' |
|
|
|
}) |
|
|
|
}) |
|
|
|
return; |
|
|
|
return; |
|
|
@ -242,14 +268,19 @@ export const AccountFindPassword = props => { |
|
|
|
setInputCrtfy(crtfyhp) |
|
|
|
setInputCrtfy(crtfyhp) |
|
|
|
} |
|
|
|
} |
|
|
|
} else if(name == 'newPw') { |
|
|
|
} else if(name == 'newPw') { |
|
|
|
|
|
|
|
const regex = /^[A-Za-z0-9@$!%*#?&]{0,20}$/; |
|
|
|
|
|
|
|
if(regex.test(value)) { |
|
|
|
newpw = value; |
|
|
|
newpw = value; |
|
|
|
setInputNewPw(newpw); |
|
|
|
setInputNewPw(newpw); |
|
|
|
// }
|
|
|
|
} |
|
|
|
} else if(name == 'newPwCk') { |
|
|
|
} else if(name == 'newPwCk') { |
|
|
|
|
|
|
|
const regex = /^[A-Za-z0-9@$!%*#?&]{0,20}$/; |
|
|
|
|
|
|
|
if(regex.test(value)) { |
|
|
|
newpwck = value; |
|
|
|
newpwck = value; |
|
|
|
setInputNewPwCk(newpwck); |
|
|
|
setInputNewPwCk(newpwck); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// const handlerClose = () => {
|
|
|
|
// const handlerClose = () => {
|
|
|
|
// setModal({ ...modal, isOpen: !modal.isOpen });
|
|
|
|
// setModal({ ...modal, isOpen: !modal.isOpen });
|
|
|
|