From 405e01032c888edf6b78bd054a44312e6e9d61c8 Mon Sep 17 00:00:00 2001 From: Dante <35383529+srdante@users.noreply.github.com> Date: Sun, 17 Jan 2021 23:56:36 -0300 Subject: [PATCH 1/4] Update OAuthController.php --- src/Http/Controllers/OAuthController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/Controllers/OAuthController.php b/src/Http/Controllers/OAuthController.php index 8bf9ffc2..c9f1574f 100644 --- a/src/Http/Controllers/OAuthController.php +++ b/src/Http/Controllers/OAuthController.php @@ -157,7 +157,7 @@ public function handleProviderCallback(Request $request, string $provider) ); } - $this->guard->login($account->user); + $this->guard->login($account->user, config('socialstream.remember')); $account->user->forceFill([ 'current_connected_account_id' => $account->id, From 4acc3f26307a829cd37c58e4662e7c6706912b97 Mon Sep 17 00:00:00 2001 From: Dante <35383529+srdante@users.noreply.github.com> Date: Sun, 17 Jan 2021 23:57:33 -0300 Subject: [PATCH 2/4] Update socialstream.php --- config/socialstream.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/config/socialstream.php b/config/socialstream.php index 232c2581..dd473332 100644 --- a/config/socialstream.php +++ b/config/socialstream.php @@ -17,6 +17,18 @@ */ 'show' => env('SHOW_SOCIALSTREAM', true), + + /* + |-------------------------------------------------------------------------- + | Socialstream Remember Session + |-------------------------------------------------------------------------- + | + | This value is used to determine if a session created by socialstream + | uses the "remember me" login parameter. + | + */ + + 'remember' => env('SOCIALSTREAM_REMEMBER', false), /* |-------------------------------------------------------------------------- From fa22e3d9280731e48182a71c87caa4977059cd56 Mon Sep 17 00:00:00 2001 From: Joel Butcher Date: Mon, 18 Jan 2021 09:38:37 +0000 Subject: [PATCH 3/4] Use remember on registration --- src/Http/Controllers/OAuthController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/Controllers/OAuthController.php b/src/Http/Controllers/OAuthController.php index c9f1574f..57483b86 100644 --- a/src/Http/Controllers/OAuthController.php +++ b/src/Http/Controllers/OAuthController.php @@ -146,7 +146,7 @@ public function handleProviderCallback(Request $request, string $provider) $user = $this->createsUser->create($provider, $providerAccount); - $this->guard->login($user); + $this->guard->login($user, config('socialstream.remember')); return redirect(config('fortify.home')); } From d6b446c5158c58e783dd545ebdbda7d3fa3fb0c7 Mon Sep 17 00:00:00 2001 From: Joel Butcher Date: Mon, 18 Jan 2021 09:40:13 +0000 Subject: [PATCH 4/4] Fix style --- config/socialstream.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/socialstream.php b/config/socialstream.php index dd473332..daad5e66 100644 --- a/config/socialstream.php +++ b/config/socialstream.php @@ -17,7 +17,7 @@ */ 'show' => env('SHOW_SOCIALSTREAM', true), - + /* |-------------------------------------------------------------------------- | Socialstream Remember Session