Merge pull request #3670 from alphagov/show-broadcast-tour-when-password-reset

Take user to page they are meant to visit in various sign-in flow scenarios
This commit is contained in:
Pea M. Tyczynska
2020-10-12 12:27:37 +01:00
committed by GitHub
19 changed files with 239 additions and 64 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>

View File

@@ -16,7 +16,7 @@
{{ govukButton({
"element": "a",
"text": "Resend email link",
"href": url_for('main.resend_email_link')
"href": url_for('main.resend_email_link', next=redirect_url)
}) }}
</p>

View File

@@ -14,7 +14,7 @@
<p class="govuk-body">Weve sent you a link to sign in to Notify. The link will open 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>

View File

@@ -33,7 +33,7 @@
{% call form_wrapper(autocomplete=True) %}
{{ form.email_address(param_extensions={"autocomplete": "email"}) }}
{{ form.password(param_extensions={"autocomplete": "current-password"}) }}
{{ page_footer("Continue", secondary_link=url_for('.forgot_password'), secondary_link_text="Forgotten your password?") }}
{{ page_footer("Continue", secondary_link=password_reset_url, secondary_link_text="Forgotten your password?") }}
{% endcall %}
</div>
</div>

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>

View File

@@ -22,7 +22,7 @@
}) }}
{{ page_footer(
"Continue",
secondary_link=url_for('main.check_and_resend_text_code'),
secondary_link=url_for('main.check_and_resend_text_code', next=redirect_url),
secondary_link_text='Not received a text message?'
) }}
{% endcall %}

View File

@@ -16,7 +16,7 @@
{{ govukButton({
"element": "a",
"text": "Resend security code",
"href": url_for('main.check_and_resend_verification_code')
"href": url_for('main.check_and_resend_verification_code', next=redirect_url)
}) }}
</p>