Browse Source

Update page copy (#1844)

deduplication-demo v0.3.48
Jack 1 year ago committed by GitHub
parent
commit
abbed0be74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      app/views/devise/confirmations/invalid.html.erb
  2. 6
      app/views/devise/confirmations/new.html.erb
  3. 2
      spec/requests/auth/confirmations_controller_spec.rb

1
app/views/devise/confirmations/invalid.html.erb

@ -7,6 +7,5 @@
</h1>
<p class="govuk-body">It looks like you have requested a newer join link than this one. Check your emails and follow the most recent link instead.</p>
</div>
</div>

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

@ -6,11 +6,11 @@
<%= 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 join link expired - get another one using the button below (valid for 3 hours).</p>
<p class="govuk-body">For security reasons, your link expired - get another one using the button below (valid for 24 hours).</p>
<%= 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 %>
</div>

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 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

Loading…
Cancel
Save