{% extends 'layouts/base.njk' %} {% set title = 'ALDAP - Welcome to the toot.party auth center!' %} {% block body %}

My account

Name: {{ user.name }}

Recovery email addresses

{% for email in emails %} {% if email.id == user.main_email_id %} {% endif %} {% endfor %} {% for email in emails %} {% if email.id != user.main_email_id %} {% endif %} {% endfor %}
Type Address Actions
Main {{ email.email }}
Secondary {{ email.email }}
{{ macros.csrf(getCSRFToken) }}
{{ macros.csrf(getCSRFToken) }}

Add a recovery email address:

{{ macros.field(_locals, 'email', 'email', null, 'Choose a safe email address', 'An email we can use to identify you in case you lose access to your account', 'required') }} {{ macros.csrf(getCSRFToken) }}

Mailbox

{% if mailboxIdentity == null %}(Not created yet){% else %}{{ mailboxIdentity }}{% endif %}

{% for identity in identities %} {% else %} {% endfor %}
# Email Actions
{{ identity.id }} {{ identity.email }}
{{ macros.csrf(getCSRFToken) }}
No identity (yet).

{% if mailboxIdentity == null %}Create your mailbox{% else %}Create a new mail identity{% endif %}

{{ macros.field(_locals, 'text', 'name', user.name, 'Email name', null, 'required') }} @ {{ macros.field(_locals, 'select', 'mail_domain_id', null, 'Choose the email domain', null, 'required', domains) }}
If using a "public" domain, can only be set to your username.
{{ macros.csrf(getCSRFToken) }}
{% endblock %}