mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
Merge pull request #5144 from turbo124/v5-develop
Fixes for connected account
This commit is contained in:
commit
36cd6f7262
@ -87,8 +87,8 @@ class ConnectedAccountController extends BaseController
|
||||
|
||||
$google = new Google();
|
||||
|
||||
if($request->header('X-API-OAUTH-PASSWORD') && strlen($request->header('X-API-OAUTH-PASSWORD')) >=1){
|
||||
$user = $google->getTokenResponse($request->header('X-API-OAUTH-PASSWORD'));
|
||||
if(request()->header('X-API-OAUTH-PASSWORD') && strlen(request()->header('X-API-OAUTH-PASSWORD')) >=1){
|
||||
$user = $google->getTokenResponse(request()->header('X-API-OAUTH-PASSWORD'));
|
||||
}
|
||||
else {
|
||||
return response()
|
||||
|
Loading…
Reference in New Issue
Block a user