{% extends "base.html" %} {% block content %}

Profile Settings

Account Information

Username: {{ current_user.username }}

Email: {{ current_user.email }}

Role: {{ current_user.role }}


Change Password
{{ change_password_form.hidden_tag() }}
{{ change_password_form.current_password.label(class="form-label") }} {{ change_password_form.current_password(class="form-control") }}
{{ change_password_form.new_password.label(class="form-label") }} {{ change_password_form.new_password(class="form-control") }}
{{ change_password_form.confirm_password.label(class="form-label") }} {{ change_password_form.confirm_password(class="form-control") }}
{{ change_password_form.submit(class="btn btn-primary mb-3") }}

Two-Factor Authentication

Status: {{ "Enabled" if current_user.mfa_enabled else "Disabled" }} {% if current_user.is_mfa_required() %} Required {% endif %}

{% if not current_user.mfa_enabled %} Setup 2FA {% endif %} {% if current_user.mfa_secret %} {% if current_user.mfa_enabled and current_user.is_mfa_required() and current_user.role != 'GlobalAdmin' %} {% else %}
{{ mfa_action_form.hidden_tag() }}
{% endif %}
{{ mfa_action_form.hidden_tag() }}
{% endif %}
{% if current_user.is_mfa_required() and current_user.role != 'GlobalAdmin' %}
Note: MFA is required for your account and cannot be disabled. Contact your administrator if you need to disable MFA.
{% endif %}
{% endblock %}