From af1a4b885bdf98f151156b38e1d9e4571c89e734 Mon Sep 17 00:00:00 2001 From: Jason Varga Date: Mon, 16 Dec 2024 14:18:59 -0500 Subject: [PATCH] simplify --- src/Http/Controllers/OAuthController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Http/Controllers/OAuthController.php b/src/Http/Controllers/OAuthController.php index 432c58d8ea..08e91f3919 100644 --- a/src/Http/Controllers/OAuthController.php +++ b/src/Http/Controllers/OAuthController.php @@ -51,9 +51,9 @@ public function handleProviderCallback(Request $request, string $provider) ->login($user, config('statamic.oauth.remember_me', true)); return redirect()->to($this->successRedirectUrl()); - } else { - return redirect()->to($this->unauthorizedRedirectUrl()); } + + return redirect()->to($this->unauthorizedRedirectUrl()); } protected function successRedirectUrl()