{% extends 'layouts/base.njk' %} {% set title = app.name + ' - Account' %} {% block body %}

My account

Name: {{ user.name }}

Change password

{{ macros.field(_locals, 'password', 'current_password', null, 'Current password') }} {{ macros.field(_locals, 'password', 'new_password', null, 'New password') }} {{ macros.field(_locals, 'password', 'new_password_confirmation', null, 'New password confirmation') }} {{ macros.csrf(getCsrfToken) }}

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