From f342c68cb5c21929d23e63dc915dd1047d73dd6c Mon Sep 17 00:00:00 2001 From: robertkj Date: Tue, 9 Apr 2013 12:07:43 +0200 Subject: Fixed minor errors in get dashboard --- router.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/router.js b/router.js index a0cd16c..7d2a699 100644 --- a/router.js +++ b/router.js @@ -44,13 +44,14 @@ module.exports = function(app) { console.log('jeg er inne i elsen'); AM.autoLogin(req.cookies.user, req.cookies.pass, function(o) { req.session.user = o; - res.redirect('/IJUSTAUTOLOGGEDDEGINN'); console.log('DAFUQ SKJEDDE NĂ…'); + res.render('index', { title: 'Autologin' }); }); + res.redirect('/IJUSTAUTOLOGGEDDEGINN'); } - res.redirect('/HAHAHAHAHAHA'); + // res.redirect('/HAHAHAHAHAHA'); } else { - res.render('index', { title: 'mordi' }); + res.render('index', { title: 'kanin' }); } }); -- cgit v1.2.3