import Form from "react-bootstrap/Form"; import Row from "react-bootstrap/Row"; import Col from "react-bootstrap/Col"; import Button from "react-bootstrap/Button"; import * as EgovNet from "../../api/egovFetch"; function PwFindForm(){ const findPw = (e) => { e.preventDefault(); e.stopPropagation(); const form = e.currentTarget; if(!form.email.value){ alert("이메일을 입력해주세요.") }if(!form.id.value){ alert("아이디를 입력해주세요.") }else{ EgovNet.requestFetch( "/auth/findPw", { method: "POST", headers: { 'Content-type': 'application/json' }, body: JSON.stringify({email: form.email.value, id: form.id.value}) }, (resp) => { document.querySelector("#findResultLabel").innerText = resp.resultMessage; }) } } return (
비밀번호를 찾고자하는 아이디와 이메일을 입력해 주세요. email icon email icon
); } export default PwFindForm;