Skip to content

Commit a15e5b6

Browse files
committed
wip
1 parent f7a63f6 commit a15e5b6

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

app/Http/Controllers/Auth/GitHubController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public function handleProviderCallback(ConnectGitHubAccount $connectGitHubAccoun
4444
}
4545

4646
$isConnectingAttempt = session()->pull('settings.github.connect.intended', false);
47+
4748
if ($isConnectingAttempt) {
4849
$currentUser = auth()->user();
4950
$githubId = $socialiteUser->getId();

app/Http/Controllers/Settings/GitHubAccountController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function disconnect(DisconnectGitHubAccount $disconnectGitHubAccount): Re
2525
{
2626
$user = auth()->user();
2727

28-
if (!$user->password) {
28+
if (! $user->password) {
2929
$this->error('You must set a password before disconnecting your GitHub account, otherwise, you will not be able to log in again.');
3030

3131
return redirect(route('settings.profile'));

resources/views/users/settings/github.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</h2>
1010

1111
<p class="mt-1 text-sm leading-5 text-gray-500">
12-
Connect your GitHub account to keep your profile information in sync.
12+
Connect your GitHub account to keep your profile for easy login and avatar sync.
1313
</p>
1414
</div>
1515

0 commit comments

Comments
 (0)