mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Merge pull request #7581 from turbo124/v5-develop
checks for access token property
This commit is contained in:
commit
77cdae7907
@ -498,6 +498,8 @@ class LoginController extends BaseController
|
|||||||
{
|
{
|
||||||
if(request()->has('accessToken'))
|
if(request()->has('accessToken'))
|
||||||
$accessToken = request()->input('accessToken');
|
$accessToken = request()->input('accessToken');
|
||||||
|
elseif(request()->has('access_token'))
|
||||||
|
$accessToken = request()->input('access_token');
|
||||||
else
|
else
|
||||||
return response()->json(['message' => 'Invalid response from oauth server'], 400);
|
return response()->json(['message' => 'Invalid response from oauth server'], 400);
|
||||||
|
|
||||||
|
@ -220,6 +220,7 @@ class Statement
|
|||||||
protected function getInvoices(): \Illuminate\Support\LazyCollection
|
protected function getInvoices(): \Illuminate\Support\LazyCollection
|
||||||
{
|
{
|
||||||
return Invoice::withTrashed()
|
return Invoice::withTrashed()
|
||||||
|
->with('payments.type')
|
||||||
->where('is_deleted', false)
|
->where('is_deleted', false)
|
||||||
->where('company_id', $this->client->company_id)
|
->where('company_id', $this->client->company_id)
|
||||||
->where('client_id', $this->client->id)
|
->where('client_id', $this->client->id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user