mirror of
https://github.com/docusealco/docuseal
synced 2026-11-10 07:42:32 -05:00
shared link 2fa
This commit is contained in:
1 parent
931addedbe
commit
a61c3e798d
19 files changed
+479
-20
No files matched your search
@@ -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