{% extends "base.html" %} {% load compress static hc_extras %} {% block title %}Account Settings - {{ site_name }}{% endblock %} {% block content %}

Settings {{ request.user.email }}

{% if messages %}
{% for message in messages %}

{{ message }}

{% endfor %}
{% endif %}
{% if use_2fa %}
{% csrf_token %}

Two-factor Authentication

{% if credentials %} {% for credential in credentials %} {% endfor %}
Security keys
{{ credential.name|default:"unnamed" }} – registered on {{ credential.created|date:"M j, Y" }} Remove
{% if credentials|length == 1 %}

Tip: add a second key! It is a good practice to register at least two security keys and store them separately.

{% endif %} {% else %}

Two-factor authentication is not enabled yet.
Your account has no registered security keys.

{% endif %} Register New Security Key
{% if added_credential_name %} {% endif %} {% if removed_credential_name %} {% endif %}
{% endif %}
{% csrf_token %}

My Projects

{% if profile.projects.exists %} {% for project in request.user.project_set.all %} {% endfor %} {% for m in request.user.memberships.all %} {% endfor %}
Project My role
Owner Settings
{% if m.rw %} Member {% else %} Read-only {% endif %} Leave
{% else %}

You do not have any projects. Create one!

{% endif %} Create a New Project
{% if left_project %} {% endif %}
{% csrf_token %}

Close Account

This will permanently remove your {{ site_name }} account.

{% include "accounts/add_project_modal.html" %} {% endblock %} {% block scripts %} {% compress js %} {% endcompress %} {% endblock %}