3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-24 03:33:07 +01:00

fix more redirects

This commit is contained in:
reality 2013-07-29 20:45:35 +00:00
parent 329b45e895
commit b069ce4b0d

View File

@ -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();