mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
fix whitespace
This commit is contained in:
@@ -169,10 +169,10 @@ function requireModules() {
|
||||
|
||||
function authorize(socket, next) {
|
||||
var handshake = socket.request,
|
||||
sessionID;
|
||||
sessionID;
|
||||
|
||||
if (!handshake) {
|
||||
return next(new Error('[[error:not-authorized]]'));
|
||||
return next(new Error('[[error:not-authorized]]'));
|
||||
}
|
||||
|
||||
cookieParser(handshake, {}, function(err) {
|
||||
@@ -186,6 +186,7 @@ function authorize(socket, next) {
|
||||
if (err) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
if (sessionData && sessionData.passport && sessionData.passport.user) {
|
||||
socket.uid = parseInt(sessionData.passport.user, 10);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user