From d8fdfc520a3409d44fbcd6ece870f6c14678f933 Mon Sep 17 00:00:00 2001 From: MadeTech Dushan Date: Fri, 12 Nov 2021 14:32:49 +0000 Subject: [PATCH] added back the rest link to email --- app/views/devise/mailer/reset_password_instructions.html.erb | 2 ++ config/environments/test.rb | 2 ++ 2 files changed, 4 insertions(+) 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.