Skip to content
Snippets Groups Projects
Commit cf0a4894 authored by Lloyd Hilaiel's avatar Lloyd Hilaiel
Browse files

Merge branch 'dev' into feature_primaries

parents 8d38a17c b6423f63
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,11 @@ exports.process = function(req, res) {
return res.json({ success: false });
}
if (!success) {
logger.info("password update fails, incorrect old password");
return res.json({ success: false });
}
logger.info("updating password for email " + req.session.authenticatedUser);
wsapi.bcryptPassword(req.body.newpass, function(err, hash) {
if (err) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment