Finished adding a new delete to also remove the reference from the invites list on the APM.

This commit is contained in:
HSam
2016-03-06 11:59:31 -06:00
parent 4d87f0276b
commit 48db16fba7
6 changed files with 32 additions and 10 deletions

View File

@@ -93,7 +93,7 @@ function registerAndLoginUser(req, res, userData, callback) {
}
},
function(next) {
user.deleteInvitation(userData.email);
user.deleteInvitationKey(userData.email);
plugins.fireHook('filter:register.complete', {uid: uid, referrer: req.body.referrer || nconf.get('relative_path') + '/'}, next);
}
], callback);