diff options
author | robertkj <joramo40@hotmail.com> | 2013-04-09 12:07:43 +0200 |
---|---|---|
committer | robertkj <joramo40@hotmail.com> | 2013-04-09 12:07:43 +0200 |
commit | f342c68cb5c21929d23e63dc915dd1047d73dd6c (patch) | |
tree | e9d19be160d033c91218b656656422f560d3fee1 | |
parent | fix? (diff) | |
download | Divid-f342c68cb5c21929d23e63dc915dd1047d73dd6c.tar.gz |
Fixed minor errors in get dashboard
-rw-r--r-- | router.js | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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' }); } }); |