From de228fa67dfaa54b7e6a19ec0e046d3dc91389fc Mon Sep 17 00:00:00 2001 From: barisusakli Date: Fri, 26 Jun 2015 12:18:09 -0400 Subject: [PATCH] display 404 page if registration is disabled --- src/controllers/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/index.js b/src/controllers/index.js index 147e5d67d1..dd3e3ecd7d 100644 --- a/src/controllers/index.js +++ b/src/controllers/index.js @@ -90,8 +90,8 @@ Controllers.login = function(req, res, next) { }; Controllers.register = function(req, res, next) { - if(meta.config.allowRegistration !== undefined && parseInt(meta.config.allowRegistration, 10) === 0) { - return res.redirect(nconf.get('relative_path') + '/403'); + if (parseInt(meta.config.allowRegistration, 10) === 0) { + return helpers.notFound(req, res); } var data = {},