Просмотр исходного кода

BugFix for verifyAccessTokenFromProxy

Yuki Takei 5 лет назад
Родитель
Сommit
9eff81d315
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      src/server/routes/apiv3/slack-integration.js

+ 2 - 0
src/server/routes/apiv3/slack-integration.js

@@ -27,6 +27,8 @@ module.exports = (crowi) => {
     if (tokenPtoG == null || tokenPtoG !== correctToken) {
     if (tokenPtoG == null || tokenPtoG !== correctToken) {
       return res.status(403).send({ message: 'The access token that identifies the request source is slackbot-proxy is invalid.' });
       return res.status(403).send({ message: 'The access token that identifies the request source is slackbot-proxy is invalid.' });
     }
     }
+
+    next();
   }
   }
 
 
   const addSigningSecretToReq = (req, res, next) => {
   const addSigningSecretToReq = (req, res, next) => {