fix an issue of unathenticated users not being able to access challenges
This commit is contained in:
@ -23,9 +23,7 @@ exports.returnNextChallenge = function(req, res) {
|
|||||||
res.redirect('challenges/0');
|
res.redirect('challenges/0');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
res.render('home', {
|
return res.redirect('../challenges/0');
|
||||||
title: 'Learn to Code and Become a Software Engineer',
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user