mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-06-30 14:31:35 +00:00
Show a warning if using the default APP_SECRET value
This commit is contained in:
parent
c229208bd5
commit
f888e10827
5 changed files with 111 additions and 3 deletions
|
|
@ -85,6 +85,15 @@
|
|||
|
||||
{% block content %}
|
||||
|
||||
{% if insecure_app_secret and is_granted('@system.server_infos') %}
|
||||
<div class="alert alert-warning" role="alert">
|
||||
<h5><i class="fa-solid fa-triangle-exclamation fa-fw"></i> {% trans %}system.app_secret.insecure.title{% endtrans %}</h5>
|
||||
<p class="mb-1">{% trans %}system.app_secret.insecure.message{% endtrans %}</p>
|
||||
<p class="mb-0">{% trans %}system.app_secret.insecure.suggestion{% endtrans %}
|
||||
<br><code>APP_SECRET={{ suggested_app_secret }}</code></p>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if is_granted('@system.show_updates') %}
|
||||
{{ nv.new_version_alert(new_version_available, new_version, new_version_url) }}
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue