mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-04-07 14:04:35 +08:00
[bug] Fix connection without jwt
This commit is contained in:
@ -1327,7 +1327,7 @@ exports.install = function(server, callbackFunction) {
|
||||
ctx.logger.info('io.use error: %s', err.stack);
|
||||
} finally {
|
||||
ctx.logger.info('io.use end');
|
||||
next(checkJwtRes.decoded ? undefined : new Error("not authorized"));
|
||||
next((checkJwtRes && !checkJwtRes.decoded) ? new Error("not authorized") : undefined);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user