From abbed0be747b32295f7d55f41d2145a5be508782 Mon Sep 17 00:00:00 2001 From: Jack <113976590+bibblobcode@users.noreply.github.com> Date: Thu, 17 Aug 2023 09:22:42 +0100 Subject: [PATCH] Update page copy (#1844) --- app/views/devise/confirmations/invalid.html.erb | 1 - app/views/devise/confirmations/new.html.erb | 6 +++--- spec/requests/auth/confirmations_controller_spec.rb | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/app/views/devise/confirmations/invalid.html.erb b/app/views/devise/confirmations/invalid.html.erb index 8d3ad96df..32219f0f4 100644 --- a/app/views/devise/confirmations/invalid.html.erb +++ b/app/views/devise/confirmations/invalid.html.erb @@ -7,6 +7,5 @@

It looks like you have requested a newer join link than this one. Check your emails and follow the most recent link instead.

- diff --git a/app/views/devise/confirmations/new.html.erb b/app/views/devise/confirmations/new.html.erb index 5f36dc388..3fc34aee6 100644 --- a/app/views/devise/confirmations/new.html.erb +++ b/app/views/devise/confirmations/new.html.erb @@ -6,11 +6,11 @@ <%= content_for(:title) %> <%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| %> - -

For security reasons, your join link expired - get another one using the button below (valid for 3 hours).

+

For security reasons, your link expired - get another one using the button below (valid for 24 hours).

<%= f.hidden_field :email, value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email) %> - <%= f.govuk_submit "Get a new join link" %> + + <%= f.govuk_submit "Get a new link" %> <% end %> diff --git a/spec/requests/auth/confirmations_controller_spec.rb b/spec/requests/auth/confirmations_controller_spec.rb index aa7f93d65..e7e2e1815 100644 --- a/spec/requests/auth/confirmations_controller_spec.rb +++ b/spec/requests/auth/confirmations_controller_spec.rb @@ -40,7 +40,7 @@ RSpec.describe Auth::ConfirmationsController, type: :request do end it "shows the expired page" do - expect(page).to have_content("For security reasons, your join link expired - get another one using the button below (valid for 3 hours).") + expect(page).to have_content("For security reasons, your link expired - get another one using the button below (valid for 24 hours).") end end