Node.js based forum software built for the modern web
pass allowRegistration in login API for #1786
psychobunnyddcca28cf0f3
diff --git a/src/controllers/index.js b/src/controllers/index.jsindex 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;}