Browse Source

feat: increase csv expiration and copy

pull/1935/head
natdeanlewissoftwire 3 years ago
parent
commit
ff72edbf21
  1. 2
      app/jobs/email_csv_job.rb
  2. 2
      app/views/devise/passwords/new.html.erb

2
app/jobs/email_csv_job.rb

@ -3,7 +3,7 @@ class EmailCsvJob < ApplicationJob
BYTE_ORDER_MARK = "\uFEFF".freeze # Required to ensure Excel always reads CSV as UTF-8
EXPIRATION_TIME = 3.hours.to_i
EXPIRATION_TIME = 24.hours.to_i
def perform(user, search_term = nil, filters = {}, all_orgs = false, organisation = nil, codes_only_export = false, log_type = "lettings") # rubocop:disable Style/OptionalBooleanParameter - sidekiq can't serialise named params
export_type = codes_only_export ? "codes" : "labels"

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

@ -14,7 +14,7 @@
</h1>
<p class="govuk-body">Enter the email address you used to create your account.</p>
<p class="govuk-body">We’ll email you a link to reset your password. This link will expire in 3 hours.</p>
<p class="govuk-body">We’ll email you a link to reset your password. This link will expire in 24 hours.</p>
<%= f.govuk_email_field :email,
label: { text: "Email address" },

Loading…
Cancel
Save