mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
refactor of backup tokens
This commit is contained in:
parent
f8a45dcec2
commit
70341d6745
@ -6,8 +6,6 @@
|
|||||||
{% trans "Two-Factor Authentication Backup Tokens" %}
|
{% trans "Two-Factor Authentication Backup Tokens" %}
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<a href="{% url 'settings' %}" class="btn btn-secondary w-100">{% trans "to settings" %}}</a>
|
|
||||||
|
|
||||||
{% if backup_tokens %}
|
{% if backup_tokens %}
|
||||||
{% if reveal_tokens %}
|
{% if reveal_tokens %}
|
||||||
<ul>
|
<ul>
|
||||||
@ -22,14 +20,14 @@
|
|||||||
{% trans 'No tokens. Press the button below to generate some.' %}
|
{% trans 'No tokens. Press the button below to generate some.' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
<br>
|
||||||
<form method="post">
|
<form method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<button type="submit" class="btn btn-primary w-100">
|
<button type="submit" class="btn btn-primary w-100">
|
||||||
{% trans 'Generate backup tokens' %}
|
{% trans 'Generate backup tokens' %}
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a href="{% url 'two-factor-remove' %}" class="btn btn-warning w-100">{% trans "Disable Two Factor" %}</a>
|
<a href="{% url 'settings' %}" class="btn btn-secondary w-100 btn-sm">{% trans "back to settings" %}</a>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
Reference in New Issue
Block a user