Skip to content

NOW MANAGED ON CODEBERG

Moved redirect functionality back to start register and log in functions

Justin Steinc37e73b626e1
diff --git a/app/Auth/Access/SocialAuthService.php b/app/Auth/Access/SocialAuthService.php
index 79f6bbd0f..62025bf7c 100644
--- a/app/Auth/Access/SocialAuthService.php
+++ b/app/Auth/Access/SocialAuthService.php
@@ -40,7 +40,7 @@ class SocialAuthService
public function startLogIn($socialDriver)
{
$driver = $this->validateDriver($socialDriver);
- return $this->redirectToSocialProvider($driver);
+ return $this->redirectToSocialProvider($driver)->redirect();
}
/**
@@ -52,7 +52,7 @@ class SocialAuthService
public function startRegister($socialDriver)
{
$driver = $this->validateDriver($socialDriver);
- return $this->redirectToSocialProvider($driver);
+ return $this->redirectToSocialProvider($driver)->redirect();
}
/**
@@ -257,9 +257,9 @@ class SocialAuthService
{
if ($driver == 'google' && config('services.google.select_account'))
{
- return $this->socialite->driver($driver)->with(['prompt' => 'select_account'])->redirect();
+ return $this->socialite->driver($driver)->with(['prompt' => 'select_account']);
}
- return $this->socialite->driver($driver)->redirect();
+ return $this->socialite->driver($driver);
}
}