1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Renable ping method for Zapier

This commit is contained in:
Hillel Coren 2017-02-15 22:09:46 +02:00
parent d096c20904
commit 05886a5ed1

View File

@ -33,11 +33,7 @@ class AccountApiController extends BaseAPIController
{ {
$headers = Utils::getApiHeaders(); $headers = Utils::getApiHeaders();
if (hash_equals(env(API_SECRET), $request->api_secret)) { return Response::make(RESULT_SUCCESS, 200, $headers);
return Response::make(RESULT_SUCCESS, 200, $headers);
} else {
return $this->errorResponse(['message' => 'API Secret does not match .env variable'], 400);
}
} }
public function register(RegisterRequest $request) public function register(RegisterRequest $request)