changeset 179:e5116a99eb3d

login/register: display message for invalid certificate
author Goffi <goffi@goffi.org>
date Sun, 03 Mar 2019 17:15:48 +0100
parents 9e48f7adfc7b
children a144243841c7
files sat_templates/templates/default/login/register.html
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sat_templates/templates/default/login/register.html	Sun Mar 03 17:14:54 2019 +0100
+++ b/sat_templates/templates/default/login/register.html	Sun Mar 03 17:15:48 2019 +0100
@@ -5,10 +5,12 @@
 {% block login_error_message %}
 {% if login_error == S_C.ALREADY_EXISTS %}
     {%- trans %}This login already exists, please choose another one.{% endtrans -%}
+{% elif login_error == S_C.INVALID_CERTIFICATE %}
+    {%- trans %}The certificate of the server is invalid. Please contact your server administrator.{% endtrans -%}
 {% elif login_error == S_C.INVALID_INPUT %}
     {%- trans %}The data you entered are nod valid.{% endtrans -%}
 {% elif login_error == S_C.BAD_REQUEST %}
-    {%- trans %}Bad request, please contact your service administrator{% endtrans -%}
+    {%- trans %}Bad request, please contact your service administrator.{% endtrans -%}
 {% else %}
     {%- trans %}An unknown error occurred, please contact your service administrator.{% endtrans -%}
 {% endif %}