Initial mfa support (for internal users) #93591
@ -1,5 +1,5 @@
|
||||
{% extends 'layout.html' %}
|
||||
{% load pipeline static %}
|
||||
{% load humanize pipeline static %}
|
||||
{% block page_title %}
|
||||
Multi-factor Authentication Setup
|
||||
{% endblock %}
|
||||
@ -48,7 +48,10 @@ Multi-factor Authentication Setup
|
||||
{% endif %}
|
||||
<ul>
|
||||
{% for d in devices_per_category.totp %}
|
||||
<li>{{ d.name }} <a class="btn btn-danger" href="{% url 'bid_main:mfa_delete_device' d.persistent_id %}"><i class="i-trash"></i></a></li>
|
||||
<li>
|
||||
{{ d.name }}
|
||||
{% if d.last_used_at %}(Last used <abbr title="{{ d.last_used_at }}">{{ d.last_used_at|naturaltime }}</abbr>){% endif %}
|
||||
<a class="btn btn-danger" href="{% url 'bid_main:mfa_delete_device' d.persistent_id %}"><i class="i-trash"></i></a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<a href="{% url 'bid_main:mfa_totp' %}" class="btn">Configure a new TOTP device</a>
|
||||
|
@ -72,10 +72,10 @@ INSTALLED_APPS = [
|
||||
"django.contrib.staticfiles",
|
||||
"django.contrib.sites",
|
||||
"django.contrib.flatpages",
|
||||
"django_otp",
|
||||
"django_otp.plugins.otp_totp",
|
||||
"django_otp.plugins.otp_static",
|
||||
"django_agent_trust",
|
||||
"django_otp",
|
||||
"django_otp.plugins.otp_static",
|
||||
"django_otp.plugins.otp_totp",
|
||||
"oauth2_provider",
|
||||
"pipeline",
|
||||
"sorl.thumbnail",
|
||||
|
Loading…
Reference in New Issue
Block a user