Skip to content
Snippets Groups Projects
Commit 656758f9 authored by Nathan Perriolat's avatar Nathan Perriolat
Browse files

not connected fix

parent fbc54537
No related branches found
No related tags found
No related merge requests found
......@@ -116,7 +116,7 @@ async function getInfos(token){
}
function authMiddleware(req, res, next) {
if ('login' in req.session.ids){
if ('ids' in req.session){
return next();
}
res.redirect('/');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment