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
Today KU
Commits
5f9f71fb
Commit
5f9f71fb
authored
Oct 31, 2021
by
Choi Ga Young
Browse files
세부사항 수정
parent
dbc0e71e
Changes
2
Hide whitespace changes
Inline
Side-by-side
client/src/components/Form/LoginForm.js
View file @
5f9f71fb
...
...
@@ -25,7 +25,7 @@ const LoginForm = () => {
password
:
Yup
.
string
()
.
required
(
'
비밀번호를 입력해주세요.
'
),
})}
onSubmit
=
{
async
(
values
,
{
setSubmitting
})
=>
{
onSubmit
=
{
async
(
values
,
{
setSubmitting
,
resetForm
})
=>
{
try
{
setError
(
""
)
const
result
=
await
authApi
.
login
(
values
)
...
...
@@ -34,6 +34,7 @@ const LoginForm = () => {
}
}
catch
(
error
)
{
catchErrors
(
error
,
setError
)
resetForm
();
}
setTimeout
(()
=>
{
setSubmitting
(
false
);
...
...
client/src/components/Form/SignupForm.js
View file @
5f9f71fb
...
...
@@ -44,7 +44,7 @@ const SignupForm = () => {
.
required
(
'
학번을 입력해주세요.
'
)
.
min
(
7
,
'
학번을 정확히 입력해주세요.
'
),
})}
onSubmit
=
{
async
(
values
,
{
setSubmitting
})
=>
{
onSubmit
=
{
async
(
values
,
{
setSubmitting
,
resetForm
})
=>
{
try
{
setError
(
""
)
const
result
=
await
authApi
.
signup
(
values
)
...
...
@@ -55,6 +55,7 @@ const SignupForm = () => {
}
}
catch
(
error
)
{
catchErrors
(
error
,
setError
)
resetForm
();
}
setTimeout
(()
=>
{
setSubmitting
(
false
);
...
...
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