Skip to content
Snippets Groups Projects
Commit c200ae8c authored by Pierre-antoine Comby's avatar Pierre-antoine Comby
Browse files

ask for cas only if available.

parent 8717581e
No related branches found
No related tags found
1 merge request!63Fix login
...@@ -16,11 +16,12 @@ SPDX-License-Identifier: GPL-2.0-or-later ...@@ -16,11 +16,12 @@ SPDX-License-Identifier: GPL-2.0-or-later
{% endblocktrans %} {% endblocktrans %}
</p> </p>
{% endif %} {% endif %}
{%url 'cas_login' as cas_url %}
<div class="alert alert-info"> {% if cas_url %}
Vous pouvez aussi vous connecter via l'authentification centralisée <a href="{% url 'cas_login' %}">en suivant ce lien.</a> <div class="alert alert-info">
Vous pouvez aussi vous connecter via l'authentification centralisée <a href="{{ cas_url }}">en suivant ce lien.</a>
</div> </div>
{%endif%}
<form action="{{ app_path }}" method="post" id="login-form">{% csrf_token %} <form action="{{ app_path }}" method="post" id="login-form">{% csrf_token %}
{{ form | crispy }} {{ form | crispy }}
<input type="submit" value="{% trans 'Log in' %}" class="btn btn-primary"> <input type="submit" value="{% trans 'Log in' %}" class="btn btn-primary">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment