Added docker compose, fixed all file paths, updated readme, fixed Async function bcrypt compare
This commit is contained in:
1 parent
51315bb8ed
commit
c8bcc59b52
10 files changed
+101
-36
No files matched your search
@@ -88,6 +88,7 @@ const loginController = async (req, res, next) => {
|
||||
const user = await req.db.getUserByEmail(req, res);
|
||||
|
||||
// Compare password
|
||||
|
||||
const match = await user.comparePassword(req.body.password);
|
||||
if (match !== true) {
|
||||
throw new Error("Incorrect password");
|
||||
|
||||
Reference in new issue
Block a user