From c200ae8c3cd7ce749ffa77148ff59f21ddb9ce06 Mon Sep 17 00:00:00 2001
From: Pierre-antoine Comby
Date: Sun, 22 Mar 2020 22:01:33 +0100
Subject: [PATCH 1/5] ask for cas only if available.
---
templates/registration/login.html | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/templates/registration/login.html b/templates/registration/login.html
index 5a4322d1..8e50fce1 100644
--- a/templates/registration/login.html
+++ b/templates/registration/login.html
@@ -16,11 +16,12 @@ SPDX-License-Identifier: GPL-2.0-or-later
{% endblocktrans %}
{% endif %}
-
-
- Vous pouvez aussi vous connecter via l'authentification centralisée
en suivant ce lien.
+ {%url 'cas_login' as cas_url %}
+ {% if cas_url %}
+
-
+ {%endif%}