shared link 2fa
This commit is contained in:
committed by
Pete Matsyburka
parent
931addedbe
commit
a61c3e798d
@@ -0,0 +1,13 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class TemplateMailer < ApplicationMailer
|
||||
def otp_verification_email(template, email:)
|
||||
@template = template
|
||||
|
||||
@otp_code = EmailVerificationCodes.generate([email.downcase.strip, template.slug].join(':'))
|
||||
|
||||
assign_message_metadata('otp_verification_email', template)
|
||||
|
||||
mail(to: email, subject: I18n.t('email_verification'))
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user