From 5e4015ccd47ca53c6b88c784a859227f03325c42 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 18 Oct 2022 17:12:26 +0000 Subject: restore pw confirmation --- routes/users.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routes') 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