{% 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 %}

Profile Settings

Basic Information

This email address is used for account verification and notifications.

Change Password

Update your account password to keep your account secure.

Enter your current password to verify your identity.
Choose a strong password with at least 8 characters.
Re-enter your new password to confirm.

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 %}