[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'))
|
app.use(cookieParser('secret'))
|
||||||
function requireAuthentication( req, res, next ){
|
function requireAuthentication( req, res, next ){
|
||||||
var userAuth = '';
|
var userAuth = '';
|
||||||
|
|
||||||
if( req.signedCookies.AuthorizationToken){
|
if( req.signedCookies.AuthorizationToken){
|
||||||
userAuth = req.signedCookies.AuthorizationToken;
|
userAuth = req.signedCookies.AuthorizationToken;
|
||||||
}
|
}
|
||||||
@ -52,7 +51,6 @@ function requireAuthentication( req, res, next ){
|
|||||||
}else if (req.get("AuthorizationToken") ){
|
}else if (req.get("AuthorizationToken") ){
|
||||||
userAuth = req.get('AuthorizationToken');
|
userAuth = req.get('AuthorizationToken');
|
||||||
}
|
}
|
||||||
console.log( `user : ${userAuth}, auth: ${authorizationToken}` )
|
|
||||||
if( userAuth && userAuth === authorizationToken ){
|
if( userAuth && userAuth === authorizationToken ){
|
||||||
next();
|
next();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user