diff --git a/src/Api/Resources/CustomerResource.php b/src/Api/Resources/CustomerResource.php index 6ec658740..8fc715132 100644 --- a/src/Api/Resources/CustomerResource.php +++ b/src/Api/Resources/CustomerResource.php @@ -1,20 +1,15 @@ -customerService = $customerService; } - /** - * Get the contact. - * @return Response - */ - public function index(): Response - { - return $this->response->create($this->indexCustomer(), ResponseCode::OK); - } - /** * Save the contact. * @return Response @@ -66,16 +52,6 @@ public function store(): Response return $this->response->create(true, ResponseCode::OK); } - if (!ReCaptcha::verify($this->request->get('recaptcha', null))) { - /** - * @var NotificationService $notificationService - */ - $notificationService = pluginApp(NotificationService::class); - $notificationService->addNotificationCode(LogLevel::ERROR, 13); - - return $this->response->create('', ResponseCode::BAD_REQUEST); - } - $contactData = $this->request->get('contact', null); $billingAddressData = $this->request->get('billingAddress', []); $deliveryAddressData = $this->request->get('deliveryAddress', []); @@ -90,7 +66,7 @@ public function store(): Response return $this->response->create(null, ResponseCode::BAD_REQUEST); } - /** @var Dispatcher $eventDispatcher */ + /** @var Dispatcher $eventDispatcher */ $eventDispatcher = pluginApp(Dispatcher::class); if (count($billingAddressData) === 0) { @@ -123,4 +99,13 @@ public function store(): Response return $this->index(); } + + /** + * Get the contact. + * @return Response + */ + public function index(): Response + { + return $this->response->create($this->indexCustomer(), ResponseCode::OK); + } }