Skip to content

Commit

Permalink
refactoring: Customize reset password instructions email
Browse files Browse the repository at this point in the history
  • Loading branch information
martintomas committed Jan 3, 2025
1 parent 945e8a2 commit f27e41b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<p><%= t("devise.mailer.reset_password_instructions.greeting", recipient: @resource.email) %></p>

<p><%= t("devise.mailer.reset_password_instructions.instruction") %></p>

<p><%= link_to t("devise.mailer.reset_password_instructions.action"), "#{@token}" %></p>

<p><%= t("devise.mailer.reset_password_instructions.instruction_2") %></p>
<p><%= t("devise.mailer.reset_password_instructions.instruction_3") %></p>
9 changes: 9 additions & 0 deletions backend/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -517,3 +517,12 @@ en:
subject: Your FORA member account was created!
content_html: "To login for first time, please %{reset_password_link}."
reset_password_link: setup your new password
devise:
mailer:
reset_password_instructions:
subject: "Reset password instructions"
greeting: "Hello %{recipient}"
instruction: "Someone has requested a link to change your password, and you can do this through the link below."
action: "Change my password"
instruction_2: "If you did not request this, please ignore this email."
instruction_3: "Your password will not change until you access the link above and create a new one."

0 comments on commit f27e41b

Please sign in to comment.