mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-17 20:45:44 +00:00
remove old allauth templates
This commit is contained in:
@ -1,16 +0,0 @@
|
||||
{% extends "account/base.html" %}
|
||||
{% load i18n crispy_forms_tags %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{% trans "Two-Factor Authentication" %}</h1>
|
||||
|
||||
<form method="post" class="login">
|
||||
{% csrf_token %}
|
||||
{{ form|crispy }}
|
||||
|
||||
<hr>
|
||||
<button type="submit" class="btn btn-primary float-right">
|
||||
<span class='fas fa-check-circle'></span> {% trans 'Authenticate' %}
|
||||
</button>
|
||||
</form>
|
||||
{% endblock content %}
|
@ -1,39 +0,0 @@
|
||||
{% extends "account/base.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block content %}
|
||||
<h3>
|
||||
{% trans "Two-Factor Authentication Backup Tokens" %}
|
||||
</h3>
|
||||
|
||||
{% if backup_tokens %}
|
||||
{% if reveal_tokens %}
|
||||
<ul>
|
||||
{% for token in backup_tokens %}
|
||||
<li>{{ token.token }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
{% trans 'Backup tokens have been generated, but are not revealed here for security reasons. Press the button below to generate new ones.' %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% trans 'No backup tokens are available. Press the button below to generate some.' %}
|
||||
{% endif %}
|
||||
|
||||
<hr>
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
<div class='btn-group float-right' role='group'>
|
||||
<button type="submit" class="btn btn-primary w-100">
|
||||
<span class='fas fa-key'></span> {% trans 'Generate Tokens' %}
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a type='button' href="{% url 'settings' %}" class="btn btn-secondary">
|
||||
<span class='fas fa-undo-alt'></span> {% trans "Return to Site" %}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{% endblock content %}
|
@ -1,27 +0,0 @@
|
||||
{% extends "account/base.html" %}
|
||||
{% load i18n crispy_forms_tags %}
|
||||
|
||||
{% block content %}
|
||||
<h3>
|
||||
{% trans "Disable Two-Factor Authentication" %}
|
||||
</h3>
|
||||
|
||||
<p>{% trans "Are you sure?" %}</p>
|
||||
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
{{ form|crispy }}
|
||||
<hr>
|
||||
<div class='btn-group float-right' role='group'>
|
||||
<button type="submit" class="btn btn-danger w-100">
|
||||
<span class='fas fa-times-circle'></span> {% trans 'Disable 2FA' %}
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a type='button' href="{% url 'settings' %}" class="btn btn-secondary">
|
||||
<span class='fas fa-undo-alt'></span> {% trans "Return to Site" %}
|
||||
</a>
|
||||
</div>
|
||||
{% endblock content %}
|
@ -1,48 +0,0 @@
|
||||
{% extends "account/base.html" %}
|
||||
{% load i18n crispy_forms_tags %}
|
||||
|
||||
{% block content %}
|
||||
<h3>
|
||||
{% trans "Setup Two-Factor Authentication" %}
|
||||
</h3>
|
||||
|
||||
<h4>
|
||||
{% trans 'Step 1' %}:
|
||||
</h4>
|
||||
|
||||
<p>
|
||||
{% trans 'Scan the QR code below with a token generator of your choice (for instance Google Authenticator).' %}
|
||||
</p>
|
||||
|
||||
<div class="bg-qr-code rounded">
|
||||
<img src="{{ qr_code_url }}" alt="{% trans 'QR Code' %}" class="mx-auto d-block"/>
|
||||
</div>
|
||||
<p class="text-center mt-2">{% trans 'Secret: ' %}{{ secret }}</p>
|
||||
<br>
|
||||
|
||||
<h4>
|
||||
{% trans 'Step 2' %}:
|
||||
</h4>
|
||||
|
||||
<p>
|
||||
{% trans 'Input a token generated by the app:' %}
|
||||
</p>
|
||||
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
{{ form|crispy }}
|
||||
|
||||
<hr>
|
||||
<div class='btn-group float-right' role='group'>
|
||||
<button type="submit" class="btn btn-primary btn-block w-100">
|
||||
<span class='fas fa-check-circle'></span> {% trans 'Verify' %}
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a type='button' href="{% url 'settings' %}" class="btn btn-secondary">
|
||||
<span class='fas fa-undo-alt'></span> {% trans "Return to Site" %}
|
||||
</a>
|
||||
</div>
|
||||
{% endblock content %}
|
Reference in New Issue
Block a user