diff options
| author | Adam Soltys <[email protected]> | 2022-10-12 21:45:57 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-10-18 21:58:51 -0700 |
| commit | 95507964eaa529412c0cc2f8153aa9f35636d4bc (patch) | |
| tree | d3f2d790567eb5150f6f5d8f0b1297080d621b0e | |
| parent | b44a8daff8252d173554a8a63f7eaa06deb10129 (diff) | |
| download | coinos-server-95507964eaa529412c0cc2f8153aa9f35636d4bc.tar.gz coinos-server-95507964eaa529412c0cc2f8153aa9f35636d4bc.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); } |
