mirror of https://github.com/docusealco/docuseal
				
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							15 lines
						
					
					
						
							417 B
						
					
					
				
			
		
		
	
	
							15 lines
						
					
					
						
							417 B
						
					
					
				| # frozen_string_literal: true
 | |
| 
 | |
| 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(':'))
 | |
| 
 | |
|     assign_message_metadata('otp_verification_email', template)
 | |
| 
 | |
|     mail(to: email, subject: I18n.t('email_verification'))
 | |
|   end
 | |
| end
 |