Update: checkLogin
This commit is contained in:
parent
49bef8ec5f
commit
411cea6ff0
1 changed files with 0 additions and 1 deletions
|
|
@ -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' ||
|
||||
|
|
|
|||
Reference in a new issue