Turn on redirects for two_factor_email_sent

This is part of the work to make sure user is redirected
to the page they initially were meant to visit after
they sign in.
This commit is contained in:
Pea Tyczynska
2020-10-09 11:41:24 +01:00
parent a6543c6e57
commit 5dd010ece8
3 changed files with 29 additions and 2 deletions

View File

@@ -24,7 +24,8 @@ def two_factor_email_sent():
title = 'Email resent' if request.args.get('email_resent') else 'Check your email'
return render_template(
'views/two-factor-email.html',
title=title
title=title,
redirect_url=request.args.get('next')
)

View File

@@ -13,7 +13,7 @@
<p class="govuk-body">Weve emailed you a link to sign in to Notify.</p>
<p class="govuk-body">Clicking the link will open Notify in a new browser window, so you can close this one.</p>
{{ page_footer(
secondary_link=url_for('main.email_not_received'),
secondary_link=url_for('main.email_not_received', next=redirect_url),
secondary_link_text='Not received an email?'
) }}
</div>