aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/routes/users.coffee8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/routes/users.coffee b/src/routes/users.coffee
index cff87d62..7b2f1f3a 100644
--- a/src/routes/users.coffee
+++ b/src/routes/users.coffee
@@ -179,8 +179,12 @@ module.exports = (sessions) ->
delete req.session.user.password
if req.body.password?
- bcrypt.hash(req.body.password, 12, (err, hash) ->
- db.hmset("user:#{req.params.user.toLowerCase()}", password: hash, ->
+ bcrypt.hash(req.body.password, 12, (err, password) ->
+ db.hmset("user:#{req.params.user.toLowerCase()}",
+ email: email
+ password: password
+ phone: phone
+ , ->
if req.xhr
res.send({})
res.end()