mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 08:16:51 -04:00
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:
@@ -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')
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<p class="govuk-body">We’ve 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>
|
||||
|
||||
Reference in New Issue
Block a user