Skip to content

Commit

Permalink
pass token to email subject translation
Browse files Browse the repository at this point in the history
  • Loading branch information
luiscobot authored Apr 27, 2024
1 parent 65ea73c commit dc0ed0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/mailers/passwordless/mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def sign_in(session, token = nil, url_options = {})

mail(
to: session.authenticatable.send(email_field),
subject: I18n.t("passwordless.mailer.sign_in.subject")
subject: I18n.t("passwordless.mailer.sign_in.subject", token: @token)
)
end
end
Expand Down

0 comments on commit dc0ed0b

Please sign in to comment.