From 76d8f19e73041560de9914bc0b76314231b5e9fa Mon Sep 17 00:00:00 2001 From: barisusakli Date: Mon, 17 Mar 2014 14:56:32 -0400 Subject: [PATCH] forgot to return #963 --- src/routes/authentication.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/authentication.js b/src/routes/authentication.js index 28f46ec7b5..1b35d78d29 100644 --- a/src/routes/authentication.js +++ b/src/routes/authentication.js @@ -74,12 +74,12 @@ plugins.fireHook('filter:register.check', userData, function(err, userData) { if (err) { - res.redirect(nconf.get('relative_path') + '/register'); + return res.redirect(nconf.get('relative_path') + '/register'); } user.create(userData, function(err, uid) { if (err || !uid) { - res.redirect(nconf.get('relative_path') + '/register'); + return res.redirect(nconf.get('relative_path') + '/register'); } req.login({