diff options
author | Dennis Eriksen <dennis.se@gmail.com> | 2013-04-09 10:36:42 +0200 |
---|---|---|
committer | Dennis Eriksen <dennis.se@gmail.com> | 2013-04-09 10:36:42 +0200 |
commit | 6c04feb625c00cf5783e169530cefbfae0fd8934 (patch) | |
tree | 4085e5000ad41cd28f7c903781c1f7c42c56ba65 /router.js | |
parent | derp? (diff) | |
download | Divid-6c04feb625c00cf5783e169530cefbfae0fd8934.tar.gz |
fix?
Diffstat (limited to '')
-rw-r--r-- | router.js | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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' }); } |