aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/router.js
diff options
context:
space:
mode:
authorrobertkj <joramo40@hotmail.com>2013-04-09 12:07:43 +0200
committerrobertkj <joramo40@hotmail.com>2013-04-09 12:07:43 +0200
commitf342c68cb5c21929d23e63dc915dd1047d73dd6c (patch)
treee9d19be160d033c91218b656656422f560d3fee1 /router.js
parentfix? (diff)
downloadDivid-f342c68cb5c21929d23e63dc915dd1047d73dd6c.tar.gz
Fixed minor errors in get dashboard
Diffstat (limited to '')
-rw-r--r--router.js7
1 files 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' });
}
});