Added docker compose, fixed all file paths, updated readme, fixed Async function bcrypt compare

This commit is contained in:
Alex Holliday committed 2024-06-14 12:07:34 -07:00
1 parent 51315bb8ed
commit c8bcc59b52
10 files changed
+101 -36

No files matched your search

+1
View File
@@ -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");