diff --git a/src/controllers/index.js b/src/controllers/index.js index 37a3040a9f..e033e186a2 100644 --- a/src/controllers/index.js +++ b/src/controllers/index.js @@ -166,6 +166,8 @@ Controllers.login = function(req, res, next) { data.token = res.locals.csrf_token; data.showResetLink = emailersPresent; data.allowLocalLogin = meta.config.allowLocalLogin === undefined || parseInt(meta.config.allowLocalLogin, 10) === 1; + data.allowRegistration = meta.config.allowRegistration; + if (req.query.next) { data.previousUrl = req.query.next; }