Give backup tokens some love.
This commit is contained in:
parent
8674029c5c
commit
4ae94cb4d5
|
@ -12,16 +12,26 @@
|
||||||
<h4>Two-Factor Authentication Backup Tokens</h4>
|
<h4>Two-Factor Authentication Backup Tokens</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
|
<div class="alert alert-danger">
|
||||||
|
<h4>Attention!</h4>
|
||||||
|
<p >
|
||||||
|
Backup Tokens are important if you for some reason <strong>lose access</strong> to your two-factor authentication device (ie. misplace your phone).<br />
|
||||||
|
If this happens you will <strong>not be able to login to BornHack.dk</strong> without using a backup token.<br />
|
||||||
|
So generate some tokens and <strong>keep them safe</strong> for a rainy day ;)
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
{% if backup_tokens %}
|
{% if backup_tokens %}
|
||||||
<ul>
|
<ul>
|
||||||
{% for token in backup_tokens %}
|
{% for token in backup_tokens %}
|
||||||
<li>{{ token.token }}</li>
|
<li><h4>{{ token.token }}</h4></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>No tokens. Press the button below to generate some.</p>
|
<p>No tokens. Press the button below to generate some.</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="panel-footer">
|
||||||
<form method="post">
|
<form method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<div class="buttonHolder">
|
<div class="buttonHolder">
|
||||||
|
@ -29,7 +39,7 @@
|
||||||
{% if backup_tokens %}
|
{% if backup_tokens %}
|
||||||
Generate new backup tokens
|
Generate new backup tokens
|
||||||
{% else %}
|
{% else %}
|
||||||
Generate new backup tokens
|
Generate backup tokens
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue