Explorar o código

BugFix for verifyAccessTokenFromProxy

Yuki Takei %!s(int64=5) %!d(string=hai) anos
pai
achega
9eff81d315
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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) => {