Tutte le view marketing, legali, viewer, dashboard e admin usano t(); mailer utente-facing e flash localizzati; admin con LocaleResolver e selettore lingua. Co-authored-by: Cursor <cursoragent@cursor.com>
14 lines
379 B
Ruby
14 lines
379 B
Ruby
class UserMailer < ApplicationMailer
|
|
default from: -> { MatchLiveTv.mail_from }
|
|
|
|
def password_reset(user, token)
|
|
@user = user
|
|
@reset_url = public_password_reset_url(token: token)
|
|
@expiry_hours = MatchLiveTv.password_reset_expiry_hours
|
|
|
|
I18n.with_locale(I18n.locale) do
|
|
mail to: user.email, subject: t("mailers.password_reset.subject")
|
|
end
|
|
end
|
|
end
|