mirror of
https://github.com/System-End/identity-vault.git
synced 2026-04-19 22:05:07 +00:00
* add premailer * first pass at converting existing mailers * this EIN is not yours :-P * remove some css that probably won't work * that was gonna bug me * more mailers! * s/account/auth * rework 2fa/security mailers * env vars for SES creds * add OpenSSL explicitly * use external logo image * nuke step_up_code
25 lines
560 B
Ruby
25 lines
560 B
Ruby
class IdentityBackupCodeMailer < ApplicationMailer
|
|
def code_used(identity)
|
|
@identity = identity
|
|
@first_name = identity.first_name
|
|
@env_prefix = env_prefix
|
|
|
|
mail(
|
|
to: identity.primary_email,
|
|
from: ACCOUNT_FROM,
|
|
subject: prefixed_subject(t(".subject"))
|
|
)
|
|
end
|
|
|
|
def codes_regenerated(identity)
|
|
@identity = identity
|
|
@first_name = identity.first_name
|
|
@env_prefix = env_prefix
|
|
|
|
mail(
|
|
to: identity.primary_email,
|
|
from: ACCOUNT_FROM,
|
|
subject: prefixed_subject(t(".subject"))
|
|
)
|
|
end
|
|
end
|