From 4aabac5288757eafe6af5dae6bebaaac91a74e75 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 19 Apr 2016 21:03:00 -0400 Subject: [PATCH] Fixes #4548 --- src/controllers/authentication.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/authentication.js b/src/controllers/authentication.js index 8db2c9e580..04a9e1408c 100644 --- a/src/controllers/authentication.js +++ b/src/controllers/authentication.js @@ -33,7 +33,7 @@ authenticationController.register = function(req, res, next) { async.waterfall([ function(next) { - if (registrationType === 'invite-only') { + if (registrationType === 'invite-only' || registrationType === 'admin-invite-only') { user.verifyInvitation(userData, next); } else { next(); @@ -59,7 +59,7 @@ authenticationController.register = function(req, res, next) { plugins.fireHook('filter:register.check', {req: req, res: res, userData: userData}, next); }, function(data, next) { - if (registrationType === 'normal' || registrationType === 'invite-only') { + if (registrationType === 'normal' || registrationType === 'invite-only' || registrationType === 'admin-invite-only') { registerAndLoginUser(req, res, userData, next); } else if (registrationType === 'admin-approval') { addToApprovalQueue(req, userData, next);