[fix] remove dandling console.log

This commit is contained in:
alban 2020-05-21 20:48:21 +02:00
parent 61fae38dde
commit ca8dd606b7

View File

@ -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();
}