mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
checks for access token property
This commit is contained in:
parent
2d46541bd3
commit
7515d0e689
@ -498,6 +498,8 @@ class LoginController extends BaseController
|
||||
{
|
||||
if(request()->has('accessToken'))
|
||||
$accessToken = request()->input('accessToken');
|
||||
elseif(request()->has('access_token'))
|
||||
$accessToken = request()->input('access_token');
|
||||
else
|
||||
return response()->json(['message' => 'Invalid response from oauth server'], 400);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user