fix an issue of unathenticated users not being able to access challenges

This commit is contained in:
Michael Q Larson
2015-03-06 17:49:14 -08:00
parent 1ee1ff4052
commit e6cf415f88

View File

@ -23,9 +23,7 @@ exports.returnNextChallenge = function(req, res) {
res.redirect('challenges/0');
}
} else {
res.render('home', {
title: 'Learn to Code and Become a Software Engineer',
});
return res.redirect('../challenges/0');
}
};