Class: StandardId::PasswordlessMailer

Inherits:
ApplicationMailer show all
Defined in:
app/mailers/standard_id/passwordless_mailer.rb

Instance Method Summary collapse

Instance Method Details

#otp_emailObject



5
6
7
8
9
10
11
12
13
14
# File 'app/mailers/standard_id/passwordless_mailer.rb', line 5

def otp_email
  @otp_code = params[:otp_code]
  @email = params[:email]

  mail(
    to: @email,
    from: StandardId.config.passwordless.mailer_from,
    subject: StandardId.config.passwordless.mailer_subject
  )
end