Initial mfa support (for internal users) #93591
@ -25,12 +25,8 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% with field=form.otp_token %}
|
{% include "components/forms/field.html" with field=form.otp_token %}
|
||||||
{% include "components/forms/field.html" %}
|
{% include "components/forms/field.html" with field=form.otp_trust_agent with_help_text=True %}
|
||||||
{% endwith %}
|
|
||||||
{% with field=form.otp_trust_agent %}
|
|
||||||
{% include "components/forms/field.html" with with_help_text=True %}
|
|
||||||
{% endwith %}
|
|
||||||
</fieldset>
|
</fieldset>
|
||||||
{{ form.non_field_errors }}
|
{{ form.non_field_errors }}
|
||||||
<button class="btn btn-block btn-accent">Continue</button>
|
<button class="btn btn-block btn-accent">Continue</button>
|
||||||
|
@ -9,18 +9,10 @@
|
|||||||
<form method="POST" id="u2f-authenticate-form">{% csrf_token %}
|
<form method="POST" id="u2f-authenticate-form">{% csrf_token %}
|
||||||
<fieldset class="mb-4">
|
<fieldset class="mb-4">
|
||||||
<p>Please use a security key you have configured. Tick the checkbox below before using the key if you want to remember this device.</p>
|
<p>Please use a security key you have configured. Tick the checkbox below before using the key if you want to remember this device.</p>
|
||||||
{% with field=form.otp_trust_agent %}
|
{% include "components/forms/field.html" with field=form.otp_trust_agent with_help_text=True %}
|
||||||
{% include "components/forms/field.html" with with_help_text=True %}
|
{% include "components/forms/field.html" with field=form.response %}
|
||||||
{% endwith %}
|
{% include "components/forms/field.html" with field=form.signature %}
|
||||||
{% with field=form.response %}
|
{% include "components/forms/field.html" with field=form.state %}
|
||||||
{% include "components/forms/field.html" %}
|
|
||||||
{% endwith %}
|
|
||||||
{% with field=form.signature %}
|
|
||||||
{% include "components/forms/field.html" %}
|
|
||||||
{% endwith %}
|
|
||||||
{% with field=form.state %}
|
|
||||||
{% include "components/forms/field.html" %}
|
|
||||||
{% endwith %}
|
|
||||||
</fieldset>
|
</fieldset>
|
||||||
{{ form.non_field_errors }}
|
{{ form.non_field_errors }}
|
||||||
<div id="webauthn-error"></div>
|
<div id="webauthn-error"></div>
|
||||||
|
@ -13,9 +13,7 @@ Disable Multi-factor Authentication
|
|||||||
</p>
|
</p>
|
||||||
<form method="post">{% csrf_token %}
|
<form method="post">{% csrf_token %}
|
||||||
{% with form=form|add_form_classes %}
|
{% with form=form|add_form_classes %}
|
||||||
{% with field=form.disable_mfa_confirm %}
|
{% include "components/forms/field.html" with field=form.disable_mfa_confirm %}
|
||||||
{% include "components/forms/field.html" %}
|
|
||||||
{% endwith %}
|
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
<div class="d-inline-flex mt-3">
|
<div class="d-inline-flex mt-3">
|
||||||
<button type="submit" class="btn btn-danger">Disable</button>
|
<button type="submit" class="btn btn-danger">Disable</button>
|
||||||
|
@ -33,18 +33,10 @@ Multi-factor Authentication Setup
|
|||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
{% with form=form|add_form_classes %}
|
{% with form=form|add_form_classes %}
|
||||||
<form method="post">{% csrf_token %}
|
<form method="post">{% csrf_token %}
|
||||||
{% with field=form.name %}
|
{% include "components/forms/field.html" with field=form.name %}
|
||||||
{% include "components/forms/field.html" %}
|
{% include "components/forms/field.html" with field=form.code %}
|
||||||
{% endwith %}
|
{% include "components/forms/field.html" with field=form.key %}
|
||||||
{% with field=form.code %}
|
{% include "components/forms/field.html" with field=form.signature %}
|
||||||
{% include "components/forms/field.html" %}
|
|
||||||
{% endwith %}
|
|
||||||
{% with field=form.key %}
|
|
||||||
{% include "components/forms/field.html" %}
|
|
||||||
{% endwith %}
|
|
||||||
{% with field=form.signature %}
|
|
||||||
{% include "components/forms/field.html" %}
|
|
||||||
{% endwith %}
|
|
||||||
<div class="d-inline-flex">
|
<div class="d-inline-flex">
|
||||||
<button type="submit" class="btn btn-primary">Validate</button>
|
<button type="submit" class="btn btn-primary">Validate</button>
|
||||||
<a class="btn btn-secondary ml-3" href="{% url 'bid_main:mfa' %}">Cancel</a>
|
<a class="btn btn-secondary ml-3" href="{% url 'bid_main:mfa' %}">Cancel</a>
|
||||||
|
@ -12,18 +12,10 @@ Multi-factor Authentication Setup
|
|||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
{% with form=form|add_form_classes %}
|
{% with form=form|add_form_classes %}
|
||||||
<form method="post" id="u2f-register-form">{% csrf_token %}
|
<form method="post" id="u2f-register-form">{% csrf_token %}
|
||||||
{% with field=form.credential %}
|
{% include "components/forms/field.html" with field=form.credential %}
|
||||||
{% include "components/forms/field.html" %}
|
{% include "components/forms/field.html" with field=form.name %}
|
||||||
{% endwith %}
|
{% include "components/forms/field.html" with field=form.signature %}
|
||||||
{% with field=form.name %}
|
{% include "components/forms/field.html" with field=form.state %}
|
||||||
{% include "components/forms/field.html" %}
|
|
||||||
{% endwith %}
|
|
||||||
{% with field=form.signature %}
|
|
||||||
{% include "components/forms/field.html" %}
|
|
||||||
{% endwith %}
|
|
||||||
{% with field=form.state %}
|
|
||||||
{% include "components/forms/field.html" %}
|
|
||||||
{% endwith %}
|
|
||||||
<div class="d-inline-flex">
|
<div class="d-inline-flex">
|
||||||
<button type="submit" class="btn btn-primary">Add security key</button>
|
<button type="submit" class="btn btn-primary">Add security key</button>
|
||||||
<a class="btn btn-secondary ml-3" href="{% url 'bid_main:mfa' %}">Cancel</a>
|
<a class="btn btn-secondary ml-3" href="{% url 'bid_main:mfa' %}">Cancel</a>
|
||||||
|
Loading…
Reference in New Issue
Block a user