aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
Diffstat (limited to 'routes')
-rw-r--r--routes/users.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/routes/users.js b/routes/users.js
index 315287e2..56db583d 100644
--- a/routes/users.js
+++ b/routes/users.js
@@ -232,9 +232,11 @@
req.session.user = req.body;
delete req.session.user.password;
if (req.body.password != null) {
- return bcrypt.hash(req.body.password, 12, function(err, hash) {
+ return bcrypt.hash(req.body.password, 12, function(err, password) {
return db.hmset("user:" + (req.params.user.toLowerCase()), {
- password: hash
+ email: email,
+ password: password,
+ phone: phone
}, function() {
if (req.xhr) {
res.send({});