diff --git a/app/Http/Controllers/ConnectedAccountController.php b/app/Http/Controllers/ConnectedAccountController.php index 06c7d04d67..c7b6e2debc 100644 --- a/app/Http/Controllers/ConnectedAccountController.php +++ b/app/Http/Controllers/ConnectedAccountController.php @@ -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()