Jelajahi Sumber

BugFix for verifyAccessTokenFromProxy

Yuki Takei 5 tahun lalu
induk
melakukan
9eff81d315
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  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) {
       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) => {