fix MFA buttons

This commit is contained in:
Matthias 2021-11-02 07:56:59 +01:00
parent 58f35ebc56
commit e73d3d567c
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -195,9 +195,9 @@
<div class="col-md-6"> <div class="col-md-6">
<h5>{% trans "Change factors" %}</h5> <h5>{% trans "Change factors" %}</h5>
<button href="{% url 'two-factor-setup' %}" class="btn btn-primary" {% if user.staticdevice_set.all and user.totpdevice_set.all %}disabled{% endif %}>{% trans "Setup multifactor" %}</button> <a href="{% url 'two-factor-setup' %}" class="btn btn-primary {% if user.staticdevice_set.all and user.totpdevice_set.all %}disabled{% endif %}" role="button">{% trans "Setup multifactor" %}</a>
{% if user.staticdevice_set.all or user.totpdevice_set.all %} {% if user.staticdevice_set.all or user.totpdevice_set.all %}
<button href="{% url 'two-factor-remove' %}" class="btn btn-primary">{% trans "Remove multifactor" %}</button> <a href="{% url 'two-factor-remove' %}" class="btn btn-primary" role="button">{% trans "Remove multifactor" %}</a>
{% endif %} {% endif %}
</div> </div>
</div> </div>