1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-21 08:51:34 +02:00

Merge pull request #5202 from turbo124/v5-develop

Minor fixes for oauth login
This commit is contained in:
David Bomba 2021-03-21 21:39:51 +11:00 committed by GitHub
commit bb8a55ca6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -330,7 +330,7 @@ class LoginController extends BaseController
// $client->setClientSecret(config('ninja.auth.google.client_secret'));
// $client->setRedirectUri(config('ninja.app_url'));
// $token = false;
$token = false;
// try{
// $token = $client->authenticate(request()->input('server_auth_code'));
@ -350,6 +350,7 @@ class LoginController extends BaseController
// $refresh_token = $token['refresh_token'];
// }
$refresh_token = '';
$name = OAuth::splitName($google->harvestName($user));