Update: checkLogin

This commit is contained in:
Yûki VACHOT 2021-12-11 12:40:33 +01:00
parent 49bef8ec5f
commit 411cea6ff0

View file

@ -81,7 +81,6 @@ function checkLogin(req, res, role=null){
if(typeof req.cookies !== 'undefined'){
const session = getSession(req.cookies.SESSIONID);
const token = getToken(session);
console.log(token);
if(typeof token.email === 'undefined' ||
token.email === -1 ||
typeof token.id === 'undefined' ||