diff options
Diffstat (limited to '')
-rw-r--r-- | router.js | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -43,16 +43,12 @@ module.exports = function(app) { } else { AM.autoLogin(req.cookies.user, req.cookies.pass, function(o) { req.session.user = o; - res.redirect('/dashboard'); + res.redirect('/dashboard'); }); } res.redirect('/login'); } else { - if (req.cookies.user == undefined || req.cookies.pass == undefined) { - res.render('index', { title: 'waaaat' }); - } else { res.render('index', { title: 'mordi' }); - } } }); |