mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 13:19:39 +02:00
Make the password reset mailer a bit more...beefy
This commit is contained in:
parent
0afab5296c
commit
47a43a888c
3 changed files with 12 additions and 1 deletions
|
@ -1,5 +1,9 @@
|
||||||
class PasswordMailer < ApplicationMailer
|
class PasswordMailer < ApplicationMailer
|
||||||
def password_reset
|
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
|
||||||
end
|
end
|
||||||
|
|
|
@ -1 +1,5 @@
|
||||||
|
<%= t('.request_made') %>
|
||||||
|
|
||||||
<%= link_to t(".cta"), edit_password_reset_url(token: params[:token]) %>
|
<%= link_to t(".cta"), edit_password_reset_url(token: params[:token]) %>
|
||||||
|
|
||||||
|
<%= t('.ignore_if_not_requested') %>
|
|
@ -2,4 +2,7 @@
|
||||||
en:
|
en:
|
||||||
password_mailer:
|
password_mailer:
|
||||||
password_reset:
|
password_reset:
|
||||||
|
request_made: A request was made to reset your Maybe password. Click the link to reset it.
|
||||||
cta: Reset your password
|
cta: Reset your password
|
||||||
|
ignore_if_not_requested: If you didn't make this request, you can ignore this email.
|
||||||
|
subject: "Maybe: Reset your password"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue