Skip to content

Commit

Permalink
fix: Provide correct reset password links at emails
Browse files Browse the repository at this point in the history
  • Loading branch information
martintomas committed Jan 7, 2025
1 parent 7269b7a commit 6f4e538
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h3><%= t "member_mailer.greetings", full_name: @member.full_name %></h3>
<p><%= t "member_mailer.first_time_login_instructions.content_html",
reset_password_link: link_to(t(".reset_password_link"), @token) %></p>
reset_password_link: link_to(t(".reset_password_link"), "#{ENV["FRONTEND_URL"]}/auth/signup/#{@token}") %></p>
<p><%= t "member_mailer.farewell_html" %></p>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

<p><%= link_to t("devise.mailer.reset_password_instructions.action"), "#{@token}" %></p>
<p><%= link_to t("devise.mailer.reset_password_instructions.action"), "#{ENV["FRONTEND_URL"]}/auth/change-password/#{@token}" %></p>

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

0 comments on commit 6f4e538

Please sign in to comment.