From b069ce4b0dee9a66386494f0162e4cb72c09f11e Mon Sep 17 00:00:00 2001 From: reality Date: Mon, 29 Jul 2013 20:45:35 +0000 Subject: [PATCH] fix more redirects --- modules/web/web.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/web/web.js b/modules/web/web.js index b6c3bf6..14f5c93 100644 --- a/modules/web/web.js +++ b/modules/web/web.js @@ -121,10 +121,7 @@ var webInterface = function(dbot) { if(req.body.redirect) { res.redirect(req.body.redirect); } else { - res.render('login', { - 'user': req.user, - 'message': 'Successfully logged in!' - }); + res.redirect('/'); } }); @@ -173,7 +170,7 @@ var webInterface = function(dbot) { if(_.include(allowedUsers, req.user.primaryNick)) { return next(); } else { - res.redirect('index'); + res.redirect('/'); } } else { return next();