From ca875ed01d57c69c0001719bda5375f94db4c46e Mon Sep 17 00:00:00 2001 From: Priansh Shah Date: Mon, 9 Apr 2018 20:30:44 +0000 Subject: [PATCH] disable signups --- config/express.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/config/express.js b/config/express.js index 05fe2881..2aba4179 100755 --- a/config/express.js +++ b/config/express.js @@ -70,7 +70,7 @@ module.exports = function(db) { // Setting application local variables app.locals.google_analytics_id = config.app.google_analytics_id; app.locals.title = config.app.title; - app.locals.signupDisabled = config.signupDisabled; + app.locals.signupDisabled = true; //config.signupDisabled; app.locals.description = config.app.description; app.locals.keywords = config.app.keywords; @@ -117,6 +117,10 @@ module.exports = function(db) { return next(); } + if (urlPath.indexOf('signup') > -1) { + res.send(400); return; + } + if (urlPath.indexOf('users') > -1 && urlPath.indexOf('me') > -1) { return next(); }