0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00

Merge pull request #1280 from dymissy/master

Added quotes to changepw admin controller
This commit is contained in:
Hannah Wolfe 2013-10-25 12:15:15 -07:00
commit 39089d06de

View file

@ -143,7 +143,7 @@ adminControllers = {
res.json(401, {error: 'Slow down, there are way too many login attempts!'}); res.json(401, {error: 'Slow down, there are way too many login attempts!'});
} }
}, },
changepw: function (req, res) { 'changepw': function (req, res) {
api.users.changePassword({ api.users.changePassword({
currentUser: req.session.user, currentUser: req.session.user,
oldpw: req.body.password, oldpw: req.body.password,