zahmis 5 лет назад
Родитель
Сommit
1bd038aac1
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      packages/slack/src/middlewares/verification-slack-request.ts

+ 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 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
@@ -43,5 +43,5 @@ export const verificationSlackRequest = (req : Request & signingSecretType, res:
 
   }
 
-  return res.send('Verification failed');
+  return res.send('Verification failed.');
 };