Turn on redirects two_factor_email

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:47 +01:00
parent 5dd010ece8
commit a531c888ba
3 changed files with 27 additions and 7 deletions

View File

@@ -11,7 +11,11 @@
<div class="govuk-grid-column-two-thirds">
<h1 class="heading-large">The link has expired</h1>
<p class="govuk-body"><a class="govuk-link govuk-link--no-visited-state" href="{{ url_for('main.sign_in') }}">Sign in again</a> to get a new link.</p>
<p class="govuk-body">
<a class="govuk-link govuk-link--no-visited-state" href="{{ url_for('main.sign_in', next=redirect_url) }}">
Sign in again
</a> to get a new link.
</p>
</div>
</div>