summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bucky/util/auth.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/bucky/util/auth.js b/bucky/util/auth.js
index ad8ce14..624c898 100644
--- a/bucky/util/auth.js
+++ b/bucky/util/auth.js
@@ -161,7 +161,7 @@ var auth = module.exports = {
var username = req.user.get('username')
var newPassword = auth.makePassword(username, req.body.newpassword)
res.user.set('password', newPassword)
- next()
+ res.user.save().then(() => next()).catch(err => res.send({ error: err }))
},
verifyLocalUser: function (username, password, done) {