mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
Merge pull request #5202 from turbo124/v5-develop
Minor fixes for oauth login
This commit is contained in:
commit
bb8a55ca6e
@ -330,7 +330,7 @@ class LoginController extends BaseController
|
|||||||
// $client->setClientSecret(config('ninja.auth.google.client_secret'));
|
// $client->setClientSecret(config('ninja.auth.google.client_secret'));
|
||||||
// $client->setRedirectUri(config('ninja.app_url'));
|
// $client->setRedirectUri(config('ninja.app_url'));
|
||||||
|
|
||||||
// $token = false;
|
$token = false;
|
||||||
|
|
||||||
// try{
|
// try{
|
||||||
// $token = $client->authenticate(request()->input('server_auth_code'));
|
// $token = $client->authenticate(request()->input('server_auth_code'));
|
||||||
@ -350,6 +350,7 @@ class LoginController extends BaseController
|
|||||||
// $refresh_token = $token['refresh_token'];
|
// $refresh_token = $token['refresh_token'];
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
$refresh_token = '';
|
||||||
|
|
||||||
$name = OAuth::splitName($google->harvestName($user));
|
$name = OAuth::splitName($google->harvestName($user));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user