diff options
| -rw-r--r-- | routes/users.js | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |
