2022-06-29 11:28:26 +02:00
|
|
|
|
{% extends "default.html" %}
|
2020-05-17 10:04:54 +02:00
|
|
|
|
|
2022-06-29 11:28:26 +02:00
|
|
|
|
{% set active_page = "setting" %}
|
|
|
|
|
{% block title %}Recovery Codes{% endblock %}
|
2020-05-17 10:04:54 +02:00
|
|
|
|
{% block default_content %}
|
2022-06-29 11:28:26 +02:00
|
|
|
|
|
2020-05-17 10:04:54 +02:00
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="card-body">
|
|
|
|
|
<h1 class="h3">Recovery codes</h1>
|
|
|
|
|
<p>
|
2020-08-05 12:28:20 +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.
|
2020-05-29 14:34:14 +02:00
|
|
|
|
Each code can only be used once, 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 %}
|
2022-06-29 11:28:26 +02:00
|
|
|
|
|
2020-05-17 10:04:54 +02:00
|
|
|
|
{% if recovery_code.used %}
|
2022-06-29 11:28:26 +02:00
|
|
|
|
|
2020-05-17 10:04:54 +02:00
|
|
|
|
<li>
|
|
|
|
|
<span style="text-decoration: line-through">{{ recovery_code.code }}</span>.
|
|
|
|
|
Used {{ recovery_code.used_at | dt }}.
|
|
|
|
|
</li>
|
|
|
|
|
{% else %}
|
2022-06-29 11:28:26 +02:00
|
|
|
|
<li>{{ recovery_code.code }}</li>
|
2020-05-17 10:04:54 +02:00
|
|
|
|
{% endif %}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</ul>
|
|
|
|
|
<form method="post" class="mt-6">
|
2022-06-29 11:28:26 +02:00
|
|
|
|
<input type="submit"
|
|
|
|
|
class="btn btn-outline-primary"
|
|
|
|
|
value="Generate New Codes">
|
2020-05-17 10:04:54 +02:00
|
|
|
|
</form>
|
2022-06-29 11:28:26 +02:00
|
|
|
|
<div class="small-text">Warning: Generating new codes will invalidate the older ones.</div>
|
|
|
|
|
<hr />
|
|
|
|
|
<a href="{{ url_for('dashboard.index') }}"
|
|
|
|
|
class="btn btn-primary btn-lg">Back to the home page</a>
|
2020-05-17 10:04:54 +02:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{% endblock %}
|