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:
parent
d096c20904
commit
05886a5ed1
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user