Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
shopping-mall
Commits
f53b58dc
Commit
f53b58dc
authored
Jan 11, 2021
by
이재연
Browse files
로그아웃 완료
parent
ae9446cf
Changes
1
Show whitespace changes
Inline
Side-by-side
client/src/Pages/Login.js
View file @
f53b58dc
...
@@ -23,6 +23,7 @@ function Login() {
...
@@ -23,6 +23,7 @@ function Login() {
setUser
({
...
user
,
[
name
]:
value
})
setUser
({
...
user
,
[
name
]:
value
})
}
}
async
function
handleSubmit
(
event
)
{
async
function
handleSubmit
(
event
)
{
event
.
preventDefault
()
event
.
preventDefault
()
const
form
=
event
.
currentTarget
;
const
form
=
event
.
currentTarget
;
...
@@ -39,20 +40,16 @@ function Login() {
...
@@ -39,20 +40,16 @@ function Login() {
}
catch
(
error
)
{
}
catch
(
error
)
{
catchErrors
(
error
,
setError
)
catchErrors
(
error
,
setError
)
}
}
}
}
if
(
success
)
{
if
(
success
)
{
alert
(
'
로그인 되었습니다.
'
)
alert
(
'
로그인 되었습니다.
'
)
return
<
Redirect
to
=
'
/
'
/>
window
.
location
.
href
=
'
/
'
}
}
return
(
return
(
<
div
>
<
Container
className
=
"
my-5
"
>
<
Container
className
=
"
my-5
"
>
<
Row
className
=
"
justify-content-center
"
>
<
Row
className
=
"
justify-content-center
"
>
<
Col
md
=
{
5
}
xs
=
{
10
}
className
=
"
border
"
style
=
{{
background
:
'
#F7F3F3
'
}}
>
<
Col
md
=
{
5
}
xs
=
{
10
}
className
=
"
border
"
style
=
{{
background
:
'
#F7F3F3
'
}}
>
...
@@ -103,7 +100,6 @@ function Login() {
...
@@ -103,7 +100,6 @@ function Login() {
<
/Col
>
<
/Col
>
<
/Row
>
<
/Row
>
<
/Container
>
<
/Container
>
<
/div
>
)
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment