Disabled shared secret check and return 500 not 400 on error

This commit is contained in:
2020-09-09 10:59:17 -03:00
parent 9ba9e064dd
commit bd3c0fb660
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -14,9 +14,10 @@ class WebhooksController
public function __invoke(Request $request)
{
$jobConfigKey = NotificationType::{$request->input('notification_type')}();
$this->determineValidRequest($request->input('password'));
$notificationId = AppleNotification::storeNotification($jobConfigKey, $request->input());
AppleNotification::storeNotification($jobConfigKey, $request->input());
//$this->determineValidRequest($request->input('password'));
$payload = NotificationPayload::createFromRequest($request);
+1 -1
View File
@@ -8,7 +8,7 @@ class WebhookFailed extends Exception
{
public static function nonValidRequest()
{
return new static("Your shared secret does not match password in Apple's request", 400);
return new static("Your shared secret does not match password in Apple's request", 500);
}
public static function jobClassDoesNotExist(string $jobClass)