aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/router.js
diff options
context:
space:
mode:
authorDennis Eriksen <dennis.se@gmail.com>2013-04-09 10:36:42 +0200
committerDennis Eriksen <dennis.se@gmail.com>2013-04-09 10:36:42 +0200
commit6c04feb625c00cf5783e169530cefbfae0fd8934 (patch)
tree4085e5000ad41cd28f7c903781c1f7c42c56ba65 /router.js
parentderp? (diff)
downloadDivid-6c04feb625c00cf5783e169530cefbfae0fd8934.tar.gz
fix?
Diffstat (limited to '')
-rw-r--r--router.js8
1 files changed, 5 insertions, 3 deletions
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' });
}