zahmis 5 lat temu
rodzic
commit
1bd038aac1

+ 3 - 3
packages/slack/src/middlewares/verification-slack-request.ts

@@ -20,8 +20,8 @@ export const verificationSlackRequest = (req : Request & signingSecretType, res:
   const slackSignature = req.headers['x-slack-signature'];
   const slackSignature = req.headers['x-slack-signature'];
   const timestamp = req.headers['x-slack-request-timestamp'];
   const timestamp = req.headers['x-slack-request-timestamp'];
 
 
-  if (slackSignature == null || slackSignature == null) {
-    return res.send('Verification failed');
+  if (slackSignature == null || timestamp == null) {
+    return res.send('Verification failed.');
   }
   }
 
 
   // protect against replay attacks
   // protect against replay attacks
@@ -43,5 +43,5 @@ export const verificationSlackRequest = (req : Request & signingSecretType, res:
 
 
   }
   }
 
 
-  return res.send('Verification failed');
+  return res.send('Verification failed.');
 };
 };