From 816ea281fffc494ebedac722e2a8589209fb24a8 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 16 Mar 2021 22:33:48 +1100 Subject: [PATCH] Fixes for connected account --- app/Http/Controllers/ConnectedAccountController.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/app/Http/Controllers/ConnectedAccountController.php b/app/Http/Controllers/ConnectedAccountController.php index c7b6e2debc..80acf01133 100644 --- a/app/Http/Controllers/ConnectedAccountController.php +++ b/app/Http/Controllers/ConnectedAccountController.php @@ -87,16 +87,7 @@ 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')); - } - else { - return response() - ->json(['message' => 'No valid oauth parameter sent.'], 401) - ->header('X-App-Version', config('ninja.app_version')) - ->header('X-Api-Version', config('ninja.minimum_client_version')); - } - + $user = $google->getTokenResponse(request()->input('id_token')); if (is_array($user)) {