aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/router.js
diff options
context:
space:
mode:
authorDennis Eriksen <dennis.se@gmail.com>2013-04-08 10:56:08 +0200
committerDennis Eriksen <dennis.se@gmail.com>2013-04-08 10:56:08 +0200
commite62b6915cecf93e49b06b06cf68243f0fe21bb70 (patch)
tree5885446b509d8391b98d0457da8a8b6e4e0d3223 /router.js
parentstarted on dashboard (diff)
downloadDivid-e62b6915cecf93e49b06b06cf68243f0fe21bb70.tar.gz
derp?
Diffstat (limited to '')
-rw-r--r--router.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/router.js b/router.js
index cf774e0..d873fb4 100644
--- a/router.js
+++ b/router.js
@@ -43,16 +43,12 @@ module.exports = function(app) {
} else {
AM.autoLogin(req.cookies.user, req.cookies.pass, function(o) {
req.session.user = o;
- res.redirect('/dashboard');
+ res.redirect('/dashboard');
});
}
res.redirect('/login');
} else {
- if (req.cookies.user == undefined || req.cookies.pass == undefined) {
- res.render('index', { title: 'waaaat' });
- } else {
res.render('index', { title: 'mordi' });
- }
}
});