From 6c04feb625c00cf5783e169530cefbfae0fd8934 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Tue, 9 Apr 2013 10:36:42 +0200 Subject: fix? --- router.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'router.js') diff --git a/router.js b/router.js index d873fb4..a0cd16c 100644 --- a/router.js +++ b/router.js @@ -21,7 +21,7 @@ module.exports = function(app) { AM.autoLogin(req.cookies.user, req.cookies.pass, function(o) { if (o != null) { req.session.user = o; - res.redirect('/account'); + res.redirect('/dashboard'); } else { res.render('index', { title: 'DERS' }); } @@ -41,12 +41,14 @@ module.exports = function(app) { if (req.cookies.user == undefined || req.cookies.pass == undefined) { res.redirect('/login'); } else { + console.log('jeg er inne i elsen'); AM.autoLogin(req.cookies.user, req.cookies.pass, function(o) { req.session.user = o; - res.redirect('/dashboard'); + res.redirect('/IJUSTAUTOLOGGEDDEGINN'); + console.log('DAFUQ SKJEDDE NĂ…'); }); } - res.redirect('/login'); + res.redirect('/HAHAHAHAHAHA'); } else { res.render('index', { title: 'mordi' }); } -- cgit v1.2.3