Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
Web_system_team5
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
박 병하
Web_system_team5
Commits
e2ea8d11
Commit
e2ea8d11
authored
1 year ago
by
wjdals Lee
Browse files
Options
Downloads
Plain Diff
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
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
frontend/src/Components/HeaderProfile.js
+2
-1
2 additions, 1 deletion
frontend/src/Components/HeaderProfile.js
frontend/src/Components/LoginFindId.js
+1
-1
1 addition, 1 deletion
frontend/src/Components/LoginFindId.js
frontend/src/Services/auth.js
+2
-2
2 additions, 2 deletions
frontend/src/Services/auth.js
with
5 additions
and
4 deletions
frontend/src/Components/HeaderProfile.js
+
2
−
1
View file @
e2ea8d11
...
@@ -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
'
);
...
...
This diff is collapsed.
Click to expand it.
frontend/src/Components/LoginFindId.js
+
1
−
1
View file @
e2ea8d11
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
frontend/src/Services/auth.js
+
2
−
2
View file @
e2ea8d11
...
@@ -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
-e
mail/
${
email
}
`
,
{
const
response
=
await
fetch
(
`
${
url
}
/auth/send
E
mail/
${
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
}
/verify
Email
`
,
{
method
:
'
POST
'
,
method
:
'
POST
'
,
headers
:
{
headers
:
{
'
Content-Type
'
:
'
application/json
'
,
'
Content-Type
'
:
'
application/json
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment