瀏覽代碼

Merge pull request #4257 from intentionally-left-nil/fix-oauth-diagnostics

Fix diagnostic confirmation of passport oauth key
daniel 2 年之前
父節點
當前提交
dba21ef92f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      resources/views/admin/diagnostics/home.blade.php

+ 2 - 2
resources/views/admin/diagnostics/home.blade.php

@@ -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>