From 96a5f233133cd19f5bad0d5b8fb093d836123f41 Mon Sep 17 00:00:00 2001 From: Lorenzo Tello Date: Thu, 6 Feb 2025 13:29:50 +0000 Subject: [PATCH] fix the url to the opt sign in page in the emails containing the otp code when user logs in --- app/views/otp_mailer/otp_code_email.text.erb | 2 +- config/environments/test.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/otp_mailer/otp_code_email.text.erb b/app/views/otp_mailer/otp_code_email.text.erb index a47723f8..e2bb908e 100644 --- a/app/views/otp_mailer/otp_code_email.text.erb +++ b/app/views/otp_mailer/otp_code_email.text.erb @@ -1,6 +1,6 @@ Dear <%= @recipient_name %> -# Use this code to sign in to [ECF 2](otp_sign_in_code_url) +# Use this code to sign in to [ECF 2](<%= otp_sign_in_code_url %>) ^ <%= @code %> diff --git a/config/environments/test.rb b/config/environments/test.rb index c6bf9731..86dd2a42 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -43,6 +43,7 @@ # The :test delivery method accumulates sent emails in the # ActionMailer::Base.deliveries array. config.action_mailer.delivery_method = :test + config.action_mailer.default_url_options = { host: "localhost", port: 3000 } # Print deprecation notices to the stderr. config.active_support.deprecation = :stderr