display 404 page if registration is disabled

v1.18.x
barisusakli 10 years ago
parent 0ba0f70581
commit de228fa67d

@ -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 = {},

Loading…
Cancel
Save