mirror of https://gitlab.crans.org/bde/nk20
ask for cas only if available.
This commit is contained in:
parent
8717581e9d
commit
c200ae8c3c
|
@ -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">
|
||||||
|
|
Loading…
Reference in New Issue