make / path redirect to landing in case of old account issue

This commit is contained in:
Quincy Larson
2015-05-01 10:18:24 -07:00
parent d8b5028619
commit 18d9f06c14
2 changed files with 8 additions and 9 deletions

View File

@@ -4,11 +4,7 @@
*/
exports.index = function(req, res) {
if (req.user) {
res.redirect('/map')
} else {
res.render('home', {
title: 'Learn to Code JavaScript and get a Coding Job by Helping Nonprofits'
});
}
res.render('home', {
title: 'Learn to Code JavaScript and get a Coding Job by Helping Nonprofits'
});
};