From b76ea33890c40006b158852b77770f88b6001a5a Mon Sep 17 00:00:00 2001 From: Anil Kulkarni Date: Tue, 28 Mar 2023 14:59:36 -0700 Subject: [PATCH] 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 --- resources/views/admin/diagnostics/home.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/admin/diagnostics/home.blade.php b/resources/views/admin/diagnostics/home.blade.php index 75831fc95..bf2b5d742 100644 --- a/resources/views/admin/diagnostics/home.blade.php +++ b/resources/views/admin/diagnostics/home.blade.php @@ -74,11 +74,11 @@
  • OAUTH public key exists: - {{ file_exists(storage_path('oauth-public.key')) ? '✅ true' : '❌ false' }} + {{ file_exists(storage_path('oauth-public.key')) || config_cache('passport.public_key') ? '✅ true' : '❌ false' }}
  • OAUTH private key exists: - {{ file_exists(storage_path('oauth-private.key')) ? '✅ true' : '❌ false' }} + {{ file_exists(storage_path('oauth-private.key')) || config_cache('passport.private_key') ? '✅ true' : '❌ false' }}