From 9a849a979c6884f269c887e3292e651fef1f3b93 Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Tue, 16 Jun 2020 17:42:53 +0200 Subject: [PATCH] ui secret key check --- cookbook/templates/system.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/cookbook/templates/system.html b/cookbook/templates/system.html index f930be4a7..c17cc7794 100644 --- a/cookbook/templates/system.html +++ b/cookbook/templates/system.html @@ -40,6 +40,21 @@

+

{% trans 'Secret Key' %} {% if secret_key %} + {% trans 'Warning' %}{% else %}{% trans 'Ok' %}{% endif %}

+ {% if secret_key %} + {% blocktrans %} + You do not have a SECRET_KEY configured in your .env file. Django defaulted to the standard key + provided with the installation which is publicly know and insecure! Please set + SECRET_KEY int the .env configuration file. + {% endblocktrans %} + {% else %} + {% trans 'Everything is fine!' %} + {% endif %} +
+
+

{% trans 'Debug Mode' %} {% if debug %} {% trans 'Warning' %}{% else %}{% trans 'Ok' %}{% endif %}