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
survey
Commits
1d61a97e
Commit
1d61a97e
authored
Jul 27, 2022
by
Lee SeoYeon
Browse files
에러 메시지
parent
8ae0fe77
Changes
1
Show whitespace changes
Inline
Side-by-side
src/controllers/auth.controller.ts
View file @
1d61a97e
...
...
@@ -72,7 +72,7 @@ export const login = asyncWrap(async (req, res) => {
const
user
=
await
userDb
.
findUserByEmail
(
email
,
true
);
console
.
log
(
"
user =
"
,
user
);
if
(
!
user
)
{
return
res
.
status
(
422
).
send
(
`
${
email
}
사용자가 존재하지
않습니다`
);
return
res
.
status
(
422
).
send
(
`
${
email
}
사용자가 존재하지않습니다
회원가입을 해주세요
`
);
}
// 2) 비밀번호 확인
const
passwordMatch
=
await
bcrypt
.
compare
(
password
,
user
.
password
);
...
...
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