diff --git a/app/Http/Controllers/Auth/LoginController.php b/app/Http/Controllers/Auth/LoginController.php index 2d84b9b09..01fd4fc32 100644 --- a/app/Http/Controllers/Auth/LoginController.php +++ b/app/Http/Controllers/Auth/LoginController.php @@ -70,10 +70,9 @@ class LoginController extends Controller * Get token from callback * Redirect to the dashboard if logging in successfully. */ - public function handleProviderCallback(Request $request) { - dd($request); + public function handleProviderCallback() { $ssoUser = Socialite::driver('eveonline')->user(); - + $user = $this->createOrGetUser($ssoUser); auth()->login($user, true); diff --git a/app/Http/Middleware/RedirectIfAuthenticated.php b/app/Http/Middleware/RedirectIfAuthenticated.php index b19409243..a789f51b1 100644 --- a/app/Http/Middleware/RedirectIfAuthenticated.php +++ b/app/Http/Middleware/RedirectIfAuthenticated.php @@ -17,6 +17,8 @@ class RedirectIfAuthenticated */ public function handle($request, Closure $next, $guard = null) { + dd($request); + if (Auth::guard($guard)->check()) { return redirect('/dashboard'); }