diff options
| author | Adam Soltys <[email protected]> | 2022-10-12 21:45:57 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-10-12 21:45:57 +0000 |
| commit | 07f3efec64feb9c9a71fbab94efabfb8f05f2fe2 (patch) | |
| tree | 9b4f37fc51b06e426e0b12081c0018dcf1975502 | |
| parent | cc9e6b916f723d4a35840136b90b36d17ce3e667 (diff) | |
| download | coinos-server-07f3efec64feb9c9a71fbab94efabfb8f05f2fe2.tar.gz coinos-server-07f3efec64feb9c9a71fbab94efabfb8f05f2fe2.zip | |
rm 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 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); } |
