mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-16 20:15:44 +00:00
disable add button if already set up
This commit is contained in:
@ -195,7 +195,7 @@
|
|||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<h5>{% trans "Change faktors" %}</h5>
|
<h5>{% trans "Change faktors" %}</h5>
|
||||||
<a href="{% url 'two-factor-setup' %}" class="btn btn-primary">{% trans "Setup multifaktor" %}</a>
|
<a href="{% url 'two-factor-setup' %}" class="btn btn-primary" {% if user.staticdevice_set.all and user.totpdevice_set.all %}disabled{% endif %}>{% trans "Setup multifaktor" %}</a>
|
||||||
<a href="{% url 'two-factor-remove' %}" class="btn btn-primary">{% trans "Remove multifaktor" %}</a>
|
<a href="{% url 'two-factor-remove' %}" class="btn btn-primary">{% trans "Remove multifaktor" %}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user