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