Fix diagnostic confirmation of passport oauth key

The ouath public/private keys can either be specified as a file or as an environment variable.
Check both places in the diagnostic page
pull/4257/head
Anil Kulkarni 2023-03-28 14:59:36 -07:00
rodzic e559bdbf57
commit b76ea33890
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4806669421E998D3
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -74,11 +74,11 @@
</li>
<li>
<strong><span class="badge badge-primary">OAUTH</span> public key exists: </strong>
<span>{{ file_exists(storage_path('oauth-public.key')) ? '✅ true' : '❌ false' }}</span>
<span>{{ file_exists(storage_path('oauth-public.key')) || config_cache('passport.public_key') ? '✅ true' : '❌ false' }}</span>
</li>
<li>
<strong><span class="badge badge-primary">OAUTH</span> private key exists: </strong>
<span>{{ file_exists(storage_path('oauth-private.key')) ? '✅ true' : '❌ false' }}</span>
<span>{{ file_exists(storage_path('oauth-private.key')) || config_cache('passport.private_key') ? '✅ true' : '❌ false' }}</span>
</li>
<hr>