mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-12 17:44:31 +00:00
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
This commit is contained in:
parent
e559bdbf57
commit
b76ea33890
1 changed files with 2 additions and 2 deletions
|
@ -74,11 +74,11 @@
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<strong><span class="badge badge-primary">OAUTH</span> public key exists: </strong>
|
<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>
|
||||||
<li>
|
<li>
|
||||||
<strong><span class="badge badge-primary">OAUTH</span> private key exists: </strong>
|
<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>
|
</li>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
Loading…
Reference in a new issue