diff --git a/app/mailers/template_mailer.rb b/app/mailers/template_mailer.rb index d662af9c..bef49ba8 100644 --- a/app/mailers/template_mailer.rb +++ b/app/mailers/template_mailer.rb @@ -2,6 +2,7 @@ class TemplateMailer < ApplicationMailer def otp_verification_email(template, email:) + @current_account = template.account @template = template @otp_code = EmailVerificationCodes.generate([email.downcase.strip, template.slug].join(':'))