{%extends "base/page.html"%} {% load pgfilters %} {%block title%}Change email{%endblock%} {%block contents%}

Change email

{%if token%}

Awaiting confirmation

A confirmation token was sent to {{token.email}} on {{token.sentat|date:"Y-m-d H:i"}}. Wait for this token to arrive, and then click the link that is sent in the email to confirm the change of email.

The token will be valid for approximately 24 hours, after which it will be automatically deleted.

To create a new token (and a new email), fill out the form below again. Note that once a new token is created, the old token will no longer be valid for use.

Change email

{%else%}

To change your email address, input the new address below. Once you click "Change email", a verification token will be sent to the new email address, and once you click the link in that email, your email will be changed.

{%endif%}
{% csrf_token %} {% if form.errors %} {% endif %} {% for field in form %}
{% if field.errors %} {% for e in field.errors %}
{{e}}
{% endfor %} {% endif %}
{{ field|field_class:"form-control" }}
{% endfor %}
{%endblock%}