Login banner
I would like to be able to add a banner to the login page.
I made this very simple change:
--- ./session/templates/session/login.html~ 2022-02-23 23:47:51.000000000 +0000
+++ ./session/templates/session/login.html 2022-03-22 11:18:54.836274045 +0000
@@ -4,6 +4,9 @@
<form action="{{ url_for("session.login", ref=ref) }}" method="POST">
<div class="col-12">
<h2 class="text-center">{{_("Login")}}</h2>
+ {% if config['LOGIN_BANNER'] %}
+ <p>{{ config['LOGIN_BANNER'] }} </p>
+ {% endif %}
</div>
<div class="form-group col-12">
<label for="user-loginname">{{_("Login Name")}}</label>
So if LOGIN_BANNER is unset (the default) it does not modify the output at all.