mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Working on oAuth
This commit is contained in:
parent
289556e673
commit
97d3093b2b
@ -100,7 +100,10 @@ class LoginController extends BaseController
|
||||
*/
|
||||
public function redirectToProvider(string $provider)
|
||||
{
|
||||
return Socialite::driver($provider)->redirect();
|
||||
if(request()->has('code'))
|
||||
return $this->handleProviderCallback($provider);
|
||||
else
|
||||
return Socialite::driver($provider)->redirect();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user