Skip to content

Commit

Permalink
Make PUT /users/:userId actually set the hash on the model correctly,…
Browse files Browse the repository at this point in the history
… when a password is specified
  • Loading branch information
joepie91 committed Feb 27, 2016
1 parent d604c42 commit 4fea1ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ module.exports = function({bookshelf}) {
}
}).then((hash) => {
if (hash != null) {
req.body.hash = null;
req.body.hash = hash;
}

/* This looks wrong. Surely a patch save is a PATCH, not a PUT? */
Expand Down

0 comments on commit 4fea1ad

Please sign in to comment.