remove console.log

v1.18.x
barisusakli 10 years ago
parent e5343b7efc
commit 558e708576

@ -164,8 +164,7 @@ function requireModules() {
} }
function authorize(socket, callback) { function authorize(socket, callback) {
var handshake = socket.request, var handshake = socket.request;
sessionID;
if (!handshake) { if (!handshake) {
return callback(new Error('[[error:not-authorized]]')); return callback(new Error('[[error:not-authorized]]'));
@ -176,9 +175,7 @@ function authorize(socket, callback) {
cookieParser(handshake, {}, next); cookieParser(handshake, {}, next);
}, },
function(next) { function(next) {
var sessionID = handshake.signedCookies['express.sid']; db.sessionStore.get(handshake.signedCookies['express.sid'], next);
console.log(next, sessionID)
db.sessionStore.get(sessionID, next);
}, },
function(sessionData, next) { function(sessionData, next) {
if (sessionData && sessionData.passport && sessionData.passport.user) { if (sessionData && sessionData.passport && sessionData.passport.user) {

Loading…
Cancel
Save