From 05886a5ed147bc004b26ddc18ae3634564f25009 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 15 Feb 2017 22:09:46 +0200 Subject: [PATCH] Renable ping method for Zapier --- app/Http/Controllers/AccountApiController.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/Http/Controllers/AccountApiController.php b/app/Http/Controllers/AccountApiController.php index 70e5e9cee2..cceb58a250 100644 --- a/app/Http/Controllers/AccountApiController.php +++ b/app/Http/Controllers/AccountApiController.php @@ -33,11 +33,7 @@ class AccountApiController extends BaseAPIController { $headers = Utils::getApiHeaders(); - if (hash_equals(env(API_SECRET), $request->api_secret)) { - return Response::make(RESULT_SUCCESS, 200, $headers); - } else { - return $this->errorResponse(['message' => 'API Secret does not match .env variable'], 400); - } + return Response::make(RESULT_SUCCESS, 200, $headers); } public function register(RegisterRequest $request)