From ff72edbf21344758a4e18a71616ccc079df602dc Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Thu, 21 Sep 2023 15:30:47 +0100 Subject: [PATCH] feat: increase csv expiration and copy --- app/jobs/email_csv_job.rb | 2 +- app/views/devise/passwords/new.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/jobs/email_csv_job.rb b/app/jobs/email_csv_job.rb index 55fdcc824..89b358e28 100644 --- a/app/jobs/email_csv_job.rb +++ b/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" diff --git a/app/views/devise/passwords/new.html.erb b/app/views/devise/passwords/new.html.erb index b59d77cd0..0ceddc404 100644 --- a/app/views/devise/passwords/new.html.erb +++ b/app/views/devise/passwords/new.html.erb @@ -14,7 +14,7 @@

Enter the email address you used to create your account.

-

We’ll email you a link to reset your password. This link will expire in 3 hours.

+

We’ll email you a link to reset your password. This link will expire in 24 hours.

<%= f.govuk_email_field :email, label: { text: "Email address" },