mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 20:56:49 +00:00
34 lines
1.3 KiB
Django/Jinja
34 lines
1.3 KiB
Django/Jinja
{% extends "_layout.html.j2" %}
|
|
|
|
{%- block title -%}
|
|
Change your email
|
|
{%- endblock -%}
|
|
|
|
{%- block content -%}
|
|
<div class="panel narrow">
|
|
<h1>Change your email</h1>
|
|
{{ user_card }}
|
|
{% match body %}
|
|
{% when ChangeEmailValidateBody::ValidationPending { session_id, client_secret, validation_error } %}
|
|
<p>
|
|
A message has been sent to your new email address with a validation link. If you do not receive the email:
|
|
<ul>
|
|
<li>Check your spam filter.</li>
|
|
</ul>
|
|
</p>
|
|
{% if validation_error %}
|
|
<small class="error">Validation failed. Have you clicked the link in the email that was sent to you?</small>
|
|
{% endif %}
|
|
<form method="get" action="validate">
|
|
<input type="hidden" name="session_id" value="{{ session_id }}">
|
|
<input type="hidden" name="client_secret" value="{{ client_secret }}">
|
|
<button type="submit">Continue</button>
|
|
</form>
|
|
{% when ChangeEmailValidateBody::Success %}
|
|
<p>
|
|
Your email address has been changed successfully. <a href="{{ crate::ROUTE_PREFIX }}/account/">Back</a>
|
|
</p>
|
|
{% endmatch %}
|
|
</div>
|
|
{%- endblock -%}
|