[fix] remove dandling console.log
This commit is contained in:
parent
61fae38dde
commit
ca8dd606b7
2
index.js
2
index.js
@ -42,7 +42,6 @@ var cookieParser = require('cookie-parser')
|
||||
app.use(cookieParser('secret'))
|
||||
function requireAuthentication( req, res, next ){
|
||||
var userAuth = '';
|
||||
|
||||
if( req.signedCookies.AuthorizationToken){
|
||||
userAuth = req.signedCookies.AuthorizationToken;
|
||||
}
|
||||
@ -52,7 +51,6 @@ function requireAuthentication( req, res, next ){
|
||||
}else if (req.get("AuthorizationToken") ){
|
||||
userAuth = req.get('AuthorizationToken');
|
||||
}
|
||||
console.log( `user : ${userAuth}, auth: ${authorizationToken}` )
|
||||
if( userAuth && userAuth === authorizationToken ){
|
||||
next();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user