diff options
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/users.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/routes/users.js b/routes/users.js index 5348ee67..0eb97557 100644 --- a/routes/users.js +++ b/routes/users.js @@ -121,6 +121,8 @@ username: req.body.username, password: hash, email: req.body.email, + commission: req.body.commission, + unit: req.body.unit, pubkey: req.body.pubkey, privkey: req.body.privkey }, function() { @@ -192,9 +194,6 @@ if (req.body.password === '') { delete req.body.password; } - if (req.body.privkey === '') { - delete req.body.privkey; - } db.hmset("user:" + req.params.user, req.body, function() { if (req.body.password != null) { return bcrypt.hash(req.body.password, 12, function(err, hash) { |
