Skip to content
Snippets Groups Projects
Commit e2ea8d11 authored by wjdals Lee's avatar wjdals Lee
Browse files

Merge branch 'main' of git.ajou.ac.kr:pb/web_system_team5

parents 14cb911b 34cd7b43
No related branches found
No related tags found
No related merge requests found
...@@ -39,8 +39,9 @@ const HeaderProfile = ({imagePath , userName}) => { ...@@ -39,8 +39,9 @@ const HeaderProfile = ({imagePath , userName}) => {
const navigate = useNavigate(); const navigate = useNavigate();
const logout = async () => { const logout = async () => {
await auth.logout(); // await auth.logout();
localStorage.removeItem('login'); localStorage.removeItem('login');
localStorage.removeItem('userId');
localStorage.removeItem('id'); localStorage.removeItem('id');
localStorage.removeItem('token'); localStorage.removeItem('token');
navigate('/login'); navigate('/login');
......
...@@ -133,7 +133,7 @@ const LoginFindId = () => { ...@@ -133,7 +133,7 @@ const LoginFindId = () => {
<div> <div>
<div className="text-blue-500 text-xs italic mt-2">인증 완료!</div> <div className="text-blue-500 text-xs italic mt-2">인증 완료!</div>
<br/> <br/>
<div>{inputEmail}님의 아이디는</div><div>"{realid}"입니다</div> {/* <div>{inputEmail}님의 아이디는</div><div>"{realid}"입니다</div> */}
</div> </div>
) : ( ) : (
<div className="text-red-500 text-xs italic mt-2">인증 실패</div> <div className="text-red-500 text-xs italic mt-2">인증 실패</div>
......
...@@ -81,7 +81,7 @@ exports.checkEmail = async (email) => { ...@@ -81,7 +81,7 @@ exports.checkEmail = async (email) => {
exports.sendEmail = async (email) => { exports.sendEmail = async (email) => {
try { try {
const response = await fetch(`${url}/auth/send-email/${email}`, { const response = await fetch(`${url}/auth/sendEmail/${email}`, {
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
...@@ -101,7 +101,7 @@ exports.verify = async (email, authNumber) => { ...@@ -101,7 +101,7 @@ exports.verify = async (email, authNumber) => {
authNumber : authNumber authNumber : authNumber
}; };
const response = await fetch(`${url}/verify`, { const response = await fetch(`${url}/verifyEmail`, {
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment