From 809c3ea270655f7533ca57307e4d11533828b448 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Thu, 31 Jul 2025 19:23:27 +0300 Subject: [PATCH] fix template 2fa email --- app/mailers/template_mailer.rb | 1 + 1 file changed, 1 insertion(+) 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(':'))