From c3da3f11d9fb825f314cdeb1506ca49c52a7ac93 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 23 May 2024 11:30:08 +0200 Subject: [PATCH] fix: Update error message for invalid token to mention invalid signature --- app/Http/Controllers/Webhook/Bitbucket.php | 2 +- app/Http/Controllers/Webhook/Github.php | 2 +- app/Http/Controllers/Webhook/Gitlab.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/Webhook/Bitbucket.php b/app/Http/Controllers/Webhook/Bitbucket.php index 7b569c278..1fc7ea453 100644 --- a/app/Http/Controllers/Webhook/Bitbucket.php +++ b/app/Http/Controllers/Webhook/Bitbucket.php @@ -82,7 +82,7 @@ public function manual(Request $request) $return_payloads->push([ 'application' => $application->name, 'status' => 'failed', - 'message' => 'Invalid token.', + 'message' => 'Invalid signature.', ]); ray('Invalid signature'); continue; diff --git a/app/Http/Controllers/Webhook/Github.php b/app/Http/Controllers/Webhook/Github.php index baa23deec..bddfaff92 100644 --- a/app/Http/Controllers/Webhook/Github.php +++ b/app/Http/Controllers/Webhook/Github.php @@ -106,7 +106,7 @@ public function manual(Request $request) $return_payloads->push([ 'application' => $application->name, 'status' => 'failed', - 'message' => 'Invalid token.', + 'message' => 'Invalid signature.', ]); continue; } diff --git a/app/Http/Controllers/Webhook/Gitlab.php b/app/Http/Controllers/Webhook/Gitlab.php index dfa9394eb..a36929781 100644 --- a/app/Http/Controllers/Webhook/Gitlab.php +++ b/app/Http/Controllers/Webhook/Gitlab.php @@ -109,7 +109,7 @@ public function manual(Request $request) $return_payloads->push([ 'application' => $application->name, 'status' => 'failed', - 'message' => 'Invalid token.', + 'message' => 'Invalid signature.', ]); ray('Invalid signature'); continue;