make / path redirect to landing in case of old account issue
This commit is contained in:
@@ -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'
|
||||
});
|
||||
};
|
||||
|
Reference in New Issue
Block a user