Commit 1d61a97e authored by Lee SeoYeon's avatar Lee SeoYeon
Browse files

에러 메시지

parent 8ae0fe77
...@@ -72,7 +72,7 @@ export const login = asyncWrap(async (req, res) => { ...@@ -72,7 +72,7 @@ export const login = asyncWrap(async (req, res) => {
const user = await userDb.findUserByEmail(email, true); const user = await userDb.findUserByEmail(email, true);
console.log("user =", user); console.log("user =", user);
if (!user) { if (!user) {
return res.status(422).send(`${email} 사용자가 존재하지 않습니다`); return res.status(422).send(`${email} 사용자가 존재하지않습니다 회원가입을 해주세요`);
} }
// 2) 비밀번호 확인 // 2) 비밀번호 확인
const passwordMatch = await bcrypt.compare(password, user.password); const passwordMatch = await bcrypt.compare(password, user.password);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment