Update: Add console.log token
This commit is contained in:
parent
7a9ee00eb5
commit
a9c959bf3f
1 changed files with 1 additions and 0 deletions
|
|
@ -81,6 +81,7 @@ function checkLogin(req, res, role=null){
|
||||||
if(typeof req.cookies !== 'undefined'){
|
if(typeof req.cookies !== 'undefined'){
|
||||||
const session = getSession(req.cookies.SESSIONID);
|
const session = getSession(req.cookies.SESSIONID);
|
||||||
const token = getToken(session);
|
const token = getToken(session);
|
||||||
|
console.log(token);
|
||||||
if(typeof token.email === 'undefined' ||
|
if(typeof token.email === 'undefined' ||
|
||||||
token.email === -1 ||
|
token.email === -1 ||
|
||||||
typeof token.id === 'undefined' ||
|
typeof token.id === 'undefined' ||
|
||||||
|
|
|
||||||
Reference in a new issue