diff --git a/app/views/devise/mailer/reset_password_instructions.html.erb b/app/views/devise/mailer/reset_password_instructions.html.erb index 45034dc1d..f667dc12f 100644 --- a/app/views/devise/mailer/reset_password_instructions.html.erb +++ b/app/views/devise/mailer/reset_password_instructions.html.erb @@ -2,5 +2,7 @@

Someone has requested a link to change your password. You can do this through the link below.

+

<%= link_to 'Change my password', edit_password_url(@resource, reset_password_token: @token) %>

+

If you didn't request this, please ignore this email.

Your password won't change until you access the link above and create a new one.

diff --git a/config/environments/test.rb b/config/environments/test.rb index ac6e59604..22de4a7bf 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -37,6 +37,8 @@ Rails.application.configure do config.action_mailer.perform_caching = false + config.action_mailer.default_url_options = { host: "localhost", port: 3000 } + # Tell Action Mailer not to deliver emails to the real world. # The :test delivery method accumulates sent emails in the # ActionMailer::Base.deliveries array.