From 95507964eaa529412c0cc2f8153aa9f35636d4bc Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 12 Oct 2022 21:45:57 +0000 Subject: rm pw confirmation --- routes/users.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/users.js b/routes/users.js index c270902c..5ecc387a 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 && password === confirm) { + if (password) { user.password = await bcrypt.hash(password, 1); } -- cgit v1.2.3