{% extends 'core/base.html' %} {% block content %}
{% if not mfa_enrolled %}

Set Up Two-Factor Authentication

Scan the QR code below with your authenticator application, then enter the generated 6-digit code to complete enrollment.

Authenticator enrollment QR code

Manual key: {{ secret }}

This enrollment code is shown only while setting up two-factor authentication. After enrollment is complete, Killian will no longer display the QR code or manual authenticator key.

{% csrf_token %}
{% else %}

Two-Factor Authentication

2FA Enabled Authenticator-based two-factor authentication is configured for this account.

For security, your authenticator QR code and manual enrollment key are not displayed after enrollment.

Credential Reveal Security

When credential reveal 2FA is required, one successful authenticator verification remains valid for {{ system_settings.credential_reveal_mfa_window_hours }} hour{{ system_settings.credential_reveal_mfa_window_hours|pluralize }} in your current signed-in session.

{% if system_settings.require_mfa_for_credential_reveal %}
Globally enforced Killian currently requires credential reveal 2FA for all users. Your personal preference cannot override the global policy.

Current effective policy: 2FA required

{% elif can_manage_reveal_mfa_preference %}
{% csrf_token %}

Enabled by default. When disabled, this affects only your account while global credential reveal enforcement is off. Every credential reveal remains recorded in the Audit Log.

{% else %}
2FA required for credential reveals User-level and custom non-management roles cannot disable credential-reveal 2FA.
{% endif %}
{% endif %}
{% endblock %} {% block scripts %}{% endblock %}