{% extends "_partials/_app_shell.html" %} {% block title %}Settings — {{ title_brand | default("allowthem") }}{% endblock %} {% block pagetitle %}Settings{% endblock %} {% block crumbs %}Account · Settings{% endblock %} {% block content %}
Profile
{% if profile_error %}
{{ profile_error }}
{% endif %} {% if profile_success %}
{{ profile_success }}
{% endif %}
Change password
{% if password_error %}
{{ password_error }}
{% endif %} {% if password_success %}
{{ password_success }}
{% endif %}
Two-factor authentication
{% if mfa_enabled %}

MFA is Enabled. {{ mfa_recovery_remaining }} of 10 recovery codes remaining.

{% else %}

MFA is Not configured.

Enable 2FA {% endif %}
Linked accounts
{% if oauth_accounts %}
{% for account in oauth_accounts %}
{{ account.provider }}
{{ account.email }}
{% endfor %}
{% else %}
No linked accounts
{% endif %} {# Link provider buttons — visible when that provider is not already linked #} {% set linked_providers = [] %} {% for account in oauth_accounts %} {% set linked_providers = linked_providers + [account.provider] %} {% endfor %}
{% if "google" not in linked_providers %} Link Google {% endif %} {% if "github" not in linked_providers %} Link GitHub {% endif %}
{% endblock %}