mirror of
https://github.com/we-promise/sure.git
synced 2026-04-20 20:44:08 +00:00
Make the password reset mailer a bit more...beefy
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1 +1,5 @@
|
||||
<%= t('.request_made') %>
|
||||
|
||||
<%= link_to t(".cta"), edit_password_reset_url(token: params[:token]) %>
|
||||
|
||||
<%= t('.ignore_if_not_requested') %>
|
||||
Reference in New Issue
Block a user