diff options
| author | Adam Soltys <[email protected]> | 2022-10-18 17:12:26 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-10-18 17:12:26 +0000 |
| commit | 5e4015ccd47ca53c6b88c784a859227f03325c42 (patch) | |
| tree | bc32e57ac94e74942e984e1500a348c5f0f76395 | |
| parent | 3b09d927ca40822558a50ff49d96d7ba6577a775 (diff) | |
| download | coinos-server-5e4015ccd47ca53c6b88c784a859227f03325c42.tar.gz coinos-server-5e4015ccd47ca53c6b88c784a859227f03325c42.zip | |
restore pw confirmation
| -rw-r--r-- | routes/users.js | 2 |
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); } |
