]> _ Git - odl.git/commitdiff
wip #4765 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 11 Oct 2021 09:08:52 +0000 (11:08 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 11 Oct 2021 09:08:52 +0000 (11:08 +0200)
app/Http/Controllers/Auth/LoginController.php

index 78a373d48fe61267b1ccf1ed8885363586e1c89c..60282cb3511902aab6946e14f43ebbe980017cf9 100644 (file)
@@ -2,10 +2,7 @@
 
 namespace App\Http\Controllers\Auth;
 
-use App\Http\Controllers\Controller;
-use App\Providers\RouteServiceProvider;
 use Backpack\CRUD\app\Library\Auth\AuthenticatesUsers;
-use Illuminate\Support\Facades\Auth;
 use Laravel\Socialite\Facades\Socialite;
 
 class LoginController extends \Backpack\CRUD\app\Http\Controllers\Auth\LoginController
@@ -25,7 +22,10 @@ class LoginController extends \Backpack\CRUD\app\Http\Controllers\Auth\LoginCont
 
     public function showLoginForm()
     {
-        dd(Socialite::driver('google')->user());
-        // return Socialite::driver('google')->redirect();
+        try {
+            dd(Socialite::driver('google')->user());
+        } catch (\Exception $e) {
+            return Socialite::driver('google')->redirect();
+        }
     }
 }