From 12f0e5a4e6be015189bb2105221351617d06ad6d Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 19 Oct 2022 21:54:05 +0000 Subject: restore pw confirmation --- routes/users.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/users.js b/routes/users.js index 5ecc387a..c270902c 100644 --- a/routes/users.js +++ b/routes/users.js @@ -177,7 +177,7 @@ app.post("/user", auth, async (req, res) => { user.email = email; user.address = address; - if (password) { + if (password && password === confirm) { user.password = await bcrypt.hash(password, 1); } -- cgit v1.2.3