Allow a banner to be displayed on the login and other related pages showing custom text. Fixes #4549

This commit is contained in:
Dave Page
2019-08-01 11:39:33 +01:00
parent 1ff007d1cb
commit 9a8a28e4f9
4 changed files with 23 additions and 0 deletions

View File

@@ -2,6 +2,11 @@
{% from "security/fields.html" import render_field_with_errors %}
{% block body %}
<div class="container-fluid h-100 login_page">
{% if config.LOGIN_BANNER is defined and config.LOGIN_BANNER != "" %}
<div class="login_banner alert alert-danger" role="alert">
{{ config.LOGIN_BANNER|safe }}
</div>
{% endif %}
{% include "security/messages.html" %}
<div class="row h-100 align-items-center justify-content-center">
<div class="col-md-6">{% block panel_image %}{% endblock %}</div>