Redirecting to home route is not passing the test, it is actually doing good and you really redirected … but this part of the test did not pass.
also , all of these are working fine but not passing because all of them contains redirecting
//logout route
app.route('/logout')
.get((req, res) => {
req.logout();
res.redirect('/');
});
//medilwares
function ensureAuthenticated(req, res, next) {
if (req.isAuthenticated()) {
return next();
}
res.redirect(301, '/');
};
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4021.2 Safari/537.36
.
Challenge: undefined
Link to the challenge:
https://www.freecodecamp.org/learn/information-security-and-quality-assurance/advanced-node-and-express/logging-a-user-out
If u can’t pass at the test and ure convinced u did it right. Why not check with others? and see what they did diffrend can be a FCC related issue or not.
1 Like
Please post the link to your Glitch project.
1 Like
I have solved it by changing home page title from ‘fcc …’ to ‘Home Page’.
and all tests passed…
monksy
January 15, 2020, 5:45pm
5
Brilliant, thank you for that @ahmad.ali ! How did you ever figure that out?
1 Like
the test string on github for this challenge
monksy
January 17, 2020, 4:14pm
7
Could you possibly tell me how to find those? I looked yesterday but couldn’t find them. There have been several cases now where it would be really helpful if I could see the test details.
monksy
January 17, 2020, 6:57pm
8
Actually, I happened to stumble across them when reading a related GitHub issue today
In case anyone else would like to see them, they’re described in the markdown files here: https://github.com/freeCodeCamp/freeCodeCamp/tree/master/curriculum/challenges/english/06-information-security-and-quality-assurance/advanced-node-and-express