mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-07 20:28:25 -04:00
Send an email to the user when they change email address
This PR changes the flow to change an email address. Once the user enter their password, they are told "Check your email". An email has been sent to them containing a link to notify which contains an encrypted token. The encrypted token contains the user id and new email address. Once the link is clicked the user's email address is updated to the new email address. They are redirected to the /user-profile page. Also in this commit is an update from flask.ext.login to flask_login.
This commit is contained in:
13
app/templates/views/change-email-continue.html
Normal file
13
app/templates/views/change-email-continue.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{% extends "withoutnav_template.html" %}
|
||||
|
||||
{% block page_title %}
|
||||
Check your email – GOV.UK Notify
|
||||
{% endblock %}
|
||||
|
||||
{% block maincolumn_content %}
|
||||
|
||||
<h1 class="heading-large">Check your email</h1>
|
||||
<p>An email has been sent to {{ new_email }}.</p>
|
||||
<p>Click the link in the email to confirm the change to your email address.</p>
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user