Merge pull request #3324 from alphagov/change-forgot-to-forgotten

Change forgot to forgotten
This commit is contained in:
karlchillmaid
2020-02-24 12:45:17 +00:00
committed by GitHub
4 changed files with 4 additions and 4 deletions

View File

@@ -50,7 +50,7 @@ def sign_in():
flash(Markup(
(
"The email address or password you entered is incorrect."
" <a href={password_reset}>Forgot your password</a>?"
" <a href={password_reset}>Forgotten your password?</a>"
).format(password_reset=url_for('.forgot_password'))
))

View File

@@ -11,7 +11,7 @@ Create a new password
<div class="grid-row">
<div class="column-two-thirds">
<h1 class="heading-large">Forgot your password?</h1>
<h1 class="heading-large">Forgotten your password?</h1>
<p>Well send you an email to create a new password.</p>

View File

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

View File

@@ -22,7 +22,7 @@ def test_render_sign_in_template_for_new_user(
assert page.select_one('#password')['autocomplete'] == 'current-password'
assert page.select('main a')[0].text == 'create one now'
assert page.select('main a')[0]['href'] == url_for('main.register')
assert page.select('main a')[1].text == 'Forgot your password?'
assert page.select('main a')[1].text == 'Forgotten your password?'
assert page.select('main a')[1]['href'] == url_for('main.forgot_password')
assert 'Sign in again' not in normalize_spaces(page.text)