2020-01-21 06:35:58 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block media %}
|
2023-01-27 23:11:10 +00:00
|
|
|
<style>
|
|
|
|
.inline-header {
|
|
|
|
font-size: 1.1em;
|
|
|
|
padding: 4px 8px;
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
2020-01-21 06:35:58 +00:00
|
|
|
|
2023-01-27 23:11:10 +00:00
|
|
|
.block-header {
|
|
|
|
font-size: 1.1em;
|
|
|
|
}
|
2020-01-21 06:35:58 +00:00
|
|
|
|
2023-01-27 23:11:10 +00:00
|
|
|
.block-header:first-of-type {
|
|
|
|
padding-top: 0.5em;
|
|
|
|
}
|
2020-01-21 06:35:58 +00:00
|
|
|
|
2023-01-27 23:11:10 +00:00
|
|
|
#center-float {
|
|
|
|
position: relative;
|
|
|
|
margin: 0 auto auto -28.5em;
|
|
|
|
left: 50%;
|
|
|
|
width: 700px;
|
|
|
|
}
|
2020-01-21 06:35:58 +00:00
|
|
|
|
2023-01-27 23:11:10 +00:00
|
|
|
#totp-disable-form {
|
|
|
|
border: unset;
|
|
|
|
background: unset;
|
|
|
|
max-width: 700px;
|
|
|
|
}
|
|
|
|
</style>
|
2020-01-21 06:35:58 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block body %}
|
2023-01-27 23:11:10 +00:00
|
|
|
<div id="center-float">
|
|
|
|
<form id="totp-disable-form" action="" method="post" class="form-area">
|
|
|
|
{% csrf_token %}
|
|
|
|
<div class="block-header">{{ _('To protect your account, you must first authenticate before you can disable Two Factor Authentication.') }}</div>
|
|
|
|
{% if form.totp_token.errors %}
|
|
|
|
<div class="form-errors">
|
|
|
|
{{ form.totp_token.errors }}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
<div>
|
|
|
|
<label class="inline-header grayed">{{ _('Enter the 6-digit code generated by your app:') }}</label>
|
|
|
|
<span class="fullwidth">{{ form.totp_token }}</span>
|
|
|
|
</div>
|
|
|
|
<button style="margin-top: 0.5em" class="button" type="submit">{{ _('Disable Two Factor Authentication') }}</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
2020-01-21 06:35:58 +00:00
|
|
|
{% endblock %}
|