1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-01-16 02:46:44 +02:00

The if needs to be inside the block

This commit is contained in:
Florent Daigniere 2021-10-09 15:44:56 +02:00
parent aaf3ddd002
commit d131d863ba

View File

@ -8,11 +8,11 @@
{% trans %}to access the administration tools{% endtrans %}
{%- endblock %}
{% if config["SESSION_COOKIE_SECURE"] %}
{%- block content %}
{% if config["SESSION_COOKIE_SECURE"] %}
<div id="login_needs_https" class="alert alert-danger d-none" role="alert">
{% trans %}The login form has been disabled as <b>SESSION_COOKIE_SECURE</b> is on but you are accessing Mailu over HTTP.{% endtrans %}
</div>
{% endif %}
{{ super() }}
{%- endblock %}
{% endif %}