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
butter-studio
Commits
04f26a91
Commit
04f26a91
authored
Jul 15, 2021
by
한규민
Browse files
signup완성
parent
5705d7c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
client/src/components/Signup/Signup.js
View file @
04f26a91
...
@@ -94,9 +94,10 @@ const Signup = () => {
...
@@ -94,9 +94,10 @@ const Signup = () => {
// 비밀번호 확인 에러유무 검사
// 비밀번호 확인 에러유무 검사
vaildationData
(
userText
.
userRePassword
,
userText
.
userPassword
,
"
errorRePassword
"
);
vaildationData
(
userText
.
userRePassword
,
userText
.
userPassword
,
"
errorRePassword
"
);
const
errorArray
=
Object
.
values
(
errors
);
// 최종 유효성 검사
// 최종 유효성 검사
if
(
overlapId
&&
(
errors
.
errorId
===
false
)
&&
(
errors
.
errorName
===
false
)
&&
(
errors
.
errorBirthday
===
false
)
if
(
overlapId
&&
(
errorArray
.
some
((
element
)
=>
(
element
))
===
false
))
{
&&
(
errors
.
errorMbnum
===
false
)
&&
(
errors
.
errorPassword
===
false
)
&&
(
errors
.
errorRePassword
===
false
))
{
console
.
log
(
userText
);
console
.
log
(
userText
);
setTimeout
(()
=>
{
console
.
log
(
"
회원가입을 완료했습니다.
"
)},
2000
)
setTimeout
(()
=>
{
console
.
log
(
"
회원가입을 완료했습니다.
"
)},
2000
)
}
}
...
...
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