This commit is contained in:
Julian Lam
2018-06-29 14:16:28 -04:00
parent 002cde1057
commit be0ef799ee
2 changed files with 2 additions and 0 deletions

View File

@@ -115,6 +115,7 @@ SocketUser.reset.commit = function (socket, data, callback) {
async.parallel({
uid: async.apply(db.getObjectField, 'reset:uid', data.code),
reset: async.apply(user.reset.commit, data.code, data.password),
hook: async.apply(plugins.fireHook, 'action:password.reset', { uid: socket.uid }),
}, next);
},
function (results, next) {