zahmis 5 лет назад
Родитель
Сommit
d6e0760f83
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      src/server/routes/apiv3/slack-bot.js

+ 4 - 1
src/server/routes/apiv3/slack-bot.js

@@ -35,6 +35,7 @@ module.exports = (crowi) => {
   router.post('/', /* verificationRequestUrl, /* verificationAccessToken, */ async(req, res) => {
 
     verifyingIsSlackRequest(req, res, crowi.configManager.getConfig('crowi', 'slackbot:signingSecret'));
+
     // Send response immediately to avoid opelation_timeout error
     // See https://api.slack.com/apis/connections/events-api#the-events-api__responding-to-events
     res.send();
@@ -95,7 +96,9 @@ module.exports = (crowi) => {
     }
   };
 
-  router.post('/interactive', verificationRequestUrl, verifyingIsSlackRequest, async(req, res) => {
+  router.post('/interactive', verificationRequestUrl, async(req, res) => {
+
+    verifyingIsSlackRequest(req, res, crowi.configManager.getConfig('crowi', 'slackbot:signingSecret'));
 
     // Send response immediately to avoid opelation_timeout error
     // See https://api.slack.com/apis/connections/events-api#the-events-api__responding-to-events