{% extends "wagtail_mfa/base_admin.html" %} {% load i18n otp_webauthn wagtailadmin_tags %} {% block titletag %} {% trans "Registered MFA devices" %} {% endblock %} {% block content %} {% trans "Create new passkey" as header_label %} {% include "wagtailadmin/shared/header.html" with title=header_label %}
{% comment %} We need to include a CSRF token here because this will cause Django to set a CSRF cookie, which is picked up by the JavaScript code that sends the registration request. {% endcomment %}
{% csrf_token %} {# The JavaScript code will set this field and submit the form #}
{% render_otp_webauthn_register_scripts %}
{% endblock %}