1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Fixes for connected account

This commit is contained in:
David Bomba 2021-03-16 22:30:33 +11:00
parent d4b05d7d7b
commit 591bfb9e9d

View File

@ -87,8 +87,8 @@ class ConnectedAccountController extends BaseController
$google = new Google(); $google = new Google();
if($request->header('X-API-OAUTH-PASSWORD') && strlen($request->header('X-API-OAUTH-PASSWORD')) >=1){ if(request()->header('X-API-OAUTH-PASSWORD') && strlen(request()->header('X-API-OAUTH-PASSWORD')) >=1){
$user = $google->getTokenResponse($request->header('X-API-OAUTH-PASSWORD')); $user = $google->getTokenResponse(request()->header('X-API-OAUTH-PASSWORD'));
} }
else { else {
return response() return response()