aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-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' });
}
});