From 2c695d52c27062ee64a61e37a4bfafe75b2e7e15 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 21 Mar 2021 23:19:17 -0700 Subject: check for pass confirm --- routes/users.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routes/users.js b/routes/users.js index e2ee569d..d0232eb4 100644 --- a/routes/users.js +++ b/routes/users.js @@ -146,6 +146,7 @@ app.post( twofa, pin, password, + confirm, tokens, seed } = req.body; @@ -178,7 +179,7 @@ app.post( user.seed = seed; user.fiat = fiat; - if (password) { + if (password && password === confirm) { user.password = await bcrypt.hash(password, 1); } -- cgit v1.2.3