Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhollmann committed Jun 22, 2024
1 parent 1a4ced9 commit 730f166
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions app/Config/connect.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php
return [
'name' => env('VATSIM_OAUTH_NAME', 'VATSIM Connect'),
'base' => env('VATSIM_OAUTH_BASE', 'https://auth-dev.vatsim.net'),
'id' => env('VATSIM_OAUTH_CLIENT', 0),
'secret' => env('VATSIM_OAUTH_SECRET', ''),
Expand Down
4 changes: 2 additions & 2 deletions resources/views/auth/parts/login-form-oidc.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

<div>
<button id="oidc-login" class="button outline svg">
<img src="{{ config('connect.icon') }}" height="30px">
<span style="padding-left: 10px">{{ trans('auth.log_in_with', ['socialDriver' => 'VATSIM Connect']) }}</span>
<img src="{{ config('connect.icon') }}" height="30px">
<span style="padding-left: 10px">{{ trans('auth.log_in_with', ['socialDriver' => config('connect.name')]) }}</span>
</button>
</div>
</form>
4 changes: 2 additions & 2 deletions resources/views/layouts/parts/header-user-menu.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
@php
$logoutPath = match (config('auth.method')) {
'saml2' => '/saml2/logout',
'oidc' => '/oidc/logout',
'oidc' => '/logout', // !!!
default => '/logout',
}
@endphp
Expand All @@ -45,4 +45,4 @@
</form>
</li>
</ul>
</div>
</div>

0 comments on commit 730f166

Please sign in to comment.