Make the password reset mailer a bit more...beefy

This commit is contained in:
Josh Pigford
2024-10-09 09:03:21 -05:00
parent 0afab5296c
commit 47a43a888c
3 changed files with 12 additions and 1 deletions

View File

@@ -1,5 +1,9 @@
class PasswordMailer < ApplicationMailer
def password_reset
mail to: params[:user].email
@user = params[:user]
@subject = t(".subject")
@cta = t(".cta")
mail to: @user.email, subject: @subject
end
end

View File

@@ -1 +1,5 @@
<%= t('.request_made') %>
<%= link_to t(".cta"), edit_password_reset_url(token: params[:token]) %>
<%= t('.ignore_if_not_requested') %>