diff options
author | Dennis Eriksen <dennis.se@gmail.com> | 2013-04-08 10:56:08 +0200 |
---|---|---|
committer | Dennis Eriksen <dennis.se@gmail.com> | 2013-04-08 10:56:08 +0200 |
commit | e62b6915cecf93e49b06b06cf68243f0fe21bb70 (patch) | |
tree | 5885446b509d8391b98d0457da8a8b6e4e0d3223 /router.js | |
parent | started on dashboard (diff) | |
download | Divid-e62b6915cecf93e49b06b06cf68243f0fe21bb70.tar.gz |
derp?
Diffstat (limited to '')
-rw-r--r-- | router.js | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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' }); - } } }); |