Skip to content

Commit

Permalink
Fix response
Browse files Browse the repository at this point in the history
Fixes #2075
  • Loading branch information
taylortom committed Sep 12, 2018
1 parent 77879dd commit 9b23f3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/auth/local/index.js
Expand Up @@ -209,14 +209,14 @@ LocalAuth.prototype.resetPassword = function (req, res, next) {
return res.status(500).end();
}
if (!usrReset) {
return res.status(200).end();
return res.status(200).json({});
}
self.internalResetPassword({ id: usrReset.user, password: req.body.password }, function (error, user) {
if (error) {
logger.log('error', error);
return res.status(500).end();
}
res.status(200).end();
res.status(200).json(user);
});
});
};
Expand Down

0 comments on commit 9b23f3d

Please sign in to comment.