diff --git a/uffd/default_config.cfg b/uffd/default_config.cfg index 14e1cdf34e6c890ae803e16f1a8c4cc6e1ca39f5..9368ce275acc39db86ac25b12d92a982749d136e 100644 --- a/uffd/default_config.cfg +++ b/uffd/default_config.cfg @@ -109,6 +109,9 @@ SERVICES_BANNER_PUBLIC=True # Enable the service overview page for users who are not logged in SERVICES_PUBLIC=True +# An optional banner that will be displayed above the login form +#LOGIN_BANNER='Always check the URL. Never enter your SSO password on any other site.' + BRANDING_LOGO_URL='/static/empty.png' SITE_TITLE='uffd' diff --git a/uffd/session/templates/session/login.html b/uffd/session/templates/session/login.html index fc3ba82e55c9fbde6e189eb6c426792c7a486fd8..8b963c2945b99799ae40b1b2a10a65fcde6758a1 100644 --- a/uffd/session/templates/session/login.html +++ b/uffd/session/templates/session/login.html @@ -5,6 +5,9 @@ <div class="col-12"> <h2 class="text-center">{{_("Login")}}</h2> </div> + {% if config['LOGIN_BANNER'] %} + <p>{{ config['LOGIN_BANNER'] }}</p> + {% endif %} <div class="form-group col-12"> <label for="user-loginname">{{_("Login Name")}}</label> <input type="text" class="form-control" id="user-loginname" name="loginname" required="required" tabindex = "1" autofocus>