1
0
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:
David Bomba 2022-06-22 11:47:14 +10:00
parent 2d46541bd3
commit 7515d0e689

View File

@ -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);