Browse Source

Change the copy for expired link page (#1874)

pull/1876/head v0.3.51
kosiakkatrina 1 year ago committed by GitHub
parent
commit
e9303a1e83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/views/devise/confirmations/new.html.erb
  2. 2
      spec/requests/auth/confirmations_controller_spec.rb

2
app/views/devise/confirmations/new.html.erb

@ -6,7 +6,7 @@
<%= content_for(:title) %>
</h1>
<%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| %>
<p class="govuk-body">For security reasons, your link expired - get another one using the button below (valid for 24 hours).</p>
<p class="govuk-body">Your join link has expired. Select the button below to get a new one. The link will be valid for 24 hours.</p>
<%= f.hidden_field :email, value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email) %>

2
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 link expired - get another one using the button below (valid for 24 hours).")
expect(page).to have_content("Your join link has expired. Select the button below to get a new one. The link will be valid for 24 hours.")
end
end

Loading…
Cancel
Save