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

My Profile

{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %}
{{ message }}
{% endfor %} {% endif %} {% endwith %}

Username: {{ user.username }}

Account Type: {% if user.is_admin %}Administrator{% else %}User{% endif %}

Member Since: {{ user.created_at.strftime('%Y-%m-%d') }}

Two-Factor Authentication: {% if user.two_factor_enabled %} ✅ Enabled {% else %} ❌ Disabled {% endif %}

Update Profile

Change Password

Security Settings

Two-Factor Authentication

{% if user.two_factor_enabled %}

Two-factor authentication is enabled for your account. This adds an extra layer of security by requiring a code from your authenticator app when logging in.

{% else %}

Two-factor authentication is not enabled for your account. We strongly recommend enabling it to protect your account.

With 2FA enabled, you'll need both your password and a code from your phone to log in.

Enable Two-Factor Authentication {% endif %}
{% endblock %}