mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 06:55:46 +01:00
remove console.log
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user