Fix #1522 -- Login button redirects to authentication url with… (#1525)

This commit is contained in:
Maico Timmerman
2019-12-16 10:42:51 +01:00
committed by Raphael Michel
parent 488ee19b11
commit 28242e52aa
2 changed files with 9 additions and 1 deletions

View File

@@ -22,9 +22,16 @@
{% csrf_token %}
{% bootstrap_form form %}
<div class="form-group buttons">
{% if backend.login_form_fields %}
<button type="submit" class="btn btn-primary btn-block">
{% trans "Log in" %}
</button>
{% endif %}
{% if backend.url %}
<a href="{{ backend.url }}" class="btn btn-primary btn-block">
{{ backend.verbose_name }}
</a>
{% endif %}
{% if backend.identifier == "native" %}
{% if can_reset %}
<a href="{% url "control:auth.forgot" %}" class="btn btn-link btn-block">