2020-05-17 10:04:54 +02:00
|
|
|
|
{% extends 'default.html' %}
|
|
|
|
|
{% set active_page = "setting" %}
|
|
|
|
|
{% block title %}
|
|
|
|
|
Recovery Codes
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
{% block default_content %}
|
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="card-body">
|
|
|
|
|
<h1 class="h3">Recovery codes</h1>
|
|
|
|
|
<p>
|
2020-05-27 19:23:33 +02:00
|
|
|
|
In the event you lose access to your authenticator app you can use one of these recovery codes to gain access to your account again.
|
|
|
|
|
Each code may be used only once and you will not be able to view these again, make sure to store them in a safe place.
|
2020-05-17 10:04:54 +02:00
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
|
{% for recovery_code in recovery_codes %}
|
|
|
|
|
{% if recovery_code.used %}
|
|
|
|
|
<li>
|
|
|
|
|
<span style="text-decoration: line-through">{{ recovery_code.code }}</span>.
|
|
|
|
|
Used {{ recovery_code.used_at | dt }}.
|
|
|
|
|
</li>
|
|
|
|
|
{% else %}
|
|
|
|
|
<li>
|
|
|
|
|
{{ recovery_code.code }}
|
|
|
|
|
</li>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
<form method="post" class="mt-6">
|
|
|
|
|
<input type="submit" class="btn btn-outline-primary" value="Generate New Codes">
|
|
|
|
|
</form>
|
|
|
|
|
<div class="small-text">
|
2020-05-27 19:23:33 +02:00
|
|
|
|
Warning: Generating new codes will invalidate the older ones.
|
2020-05-17 10:04:54 +02:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{% endblock %}
|