From e62b6915cecf93e49b06b06cf68243f0fe21bb70 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Mon, 8 Apr 2013 10:56:08 +0200 Subject: derp? --- router.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'router.js') diff --git a/router.js b/router.js index cf774e0..d873fb4 100644 --- a/router.js +++ b/router.js @@ -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' }); - } } }); -- cgit v1.2.3