Skip to content

Commit

Permalink
change incorrect password
Browse files Browse the repository at this point in the history
  • Loading branch information
bekiTil committed May 22, 2023
1 parent 8a924dc commit 8652f2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Utils/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ const userLogin = async (req, res, next) => {
let isMatch = await bcrypt.compare(password, user.password);
console.log(isMatch)
if (!isMatch)
return res.status(400).json({ success: false, message: "Login Failed." });
return res.status(400).json({ success: false, message: "Incorrect Password." });

const access_token = createAccessToken({
id: user.id,
Expand Down

0 comments on commit 8652f2d

Please sign in to comment.