mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
Just like with signup confirmation links, we shouldn't trigger email change based on a GET to the confirmation URL - POST should be required. So upon GET of the confirmation link, we serve a form which will immediately be POSTed by JS code to finalize the email change.
24 lines
786 B
HTML
24 lines
786 B
HTML
{% extends "zerver/base.html" %}
|
|
{% set entrypoint = "redirect-to-post" %}
|
|
|
|
{% block title %}
|
|
<title>{{ _("Confirming your email address") }} | Zulip</title>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
{#
|
|
This template is referenced by the confirmation code and does not have the
|
|
requisite context to make a useful signup form. Therefore, we immediately
|
|
post to another view which executes in our code to produce the desired form.
|
|
#}
|
|
|
|
<form id="register" class="redirect-to-post-form" action="{{ registration_url }}" method="post">
|
|
{{ csrf_input }}
|
|
<input type="hidden" value="{{ key }}" name="key"/>
|
|
<input type="hidden" value="1" name="from_confirmation"/>
|
|
<input type="hidden" value="{% if full_name %}{{ full_name }}{% endif %}" name="full_name"/>
|
|
</form>
|
|
|
|
{% endblock %}
|