aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-10-19 21:54:05 +0000
committerAdam Soltys <[email protected]>2022-10-19 21:54:05 +0000
commit12f0e5a4e6be015189bb2105221351617d06ad6d (patch)
tree3166b1832d5e45b80805c8ac69439cbc3d1c173f
parent889f93bb24d9c1357b15b477e5a5b4d2bc4dcb20 (diff)
downloadcoinos-server-12f0e5a4e6be015189bb2105221351617d06ad6d.tar.gz
coinos-server-12f0e5a4e6be015189bb2105221351617d06ad6d.zip
restore pw confirmation
-rw-r--r--routes/users.js2
1 files changed, 1 insertions, 1 deletions
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);
}