Class: QuoVadis::Mailer

Inherits:
Object
  • Object
show all
Defined in:
app/mailers/quo_vadis/mailer.rb

Instance Method Summary collapse

Instance Method Details

#account_confirmationObject



11
12
13
14
# File 'app/mailers/quo_vadis/mailer.rb', line 11

def 
  @otp = params[:otp]
  _mail params[:email], QuoVadis.translate('mailer.confirmation.subject')
end

#email_change_notificationObject



16
17
18
19
20
# File 'app/mailers/quo_vadis/mailer.rb', line 16

def email_change_notification
  @timestamp = params[:timestamp]
  @ip = params[:ip]
  _mail params[:email], QuoVadis.translate('mailer.notification.email_change')
end

#identifier_change_notificationObject



22
23
24
25
26
27
28
# File 'app/mailers/quo_vadis/mailer.rb', line 22

def identifier_change_notification
  @timestamp = params[:timestamp]
  @identifier = params[:identifier]
  @ip = params[:ip]
  _mail params[:email], QuoVadis.translate('mailer.notification.identifier_change',
                                           identifier: params[:identifier])
end

#password_change_notificationObject



30
31
32
33
34
# File 'app/mailers/quo_vadis/mailer.rb', line 30

def password_change_notification
  @timestamp = params[:timestamp]
  @ip = params[:ip]
  _mail params[:email], QuoVadis.translate('mailer.notification.password_change')
end

#password_reset_notificationObject



36
37
38
39
40
# File 'app/mailers/quo_vadis/mailer.rb', line 36

def password_reset_notification
  @timestamp = params[:timestamp]
  @ip = params[:ip]
  _mail params[:email], QuoVadis.translate('mailer.notification.password_reset')
end

#recovery_codes_generation_notificationObject



60
61
62
63
64
# File 'app/mailers/quo_vadis/mailer.rb', line 60

def recovery_codes_generation_notification
  @timestamp = params[:timestamp]
  @ip = params[:ip]
  _mail params[:email], QuoVadis.translate('mailer.notification.recovery_codes_generation')
end

#reset_passwordObject



6
7
8
9
# File 'app/mailers/quo_vadis/mailer.rb', line 6

def reset_password
  @otp = params[:otp]
  _mail params[:email], QuoVadis.translate('mailer.password_reset.subject')
end

#totp_reuse_notificationObject



48
49
50
51
52
# File 'app/mailers/quo_vadis/mailer.rb', line 48

def totp_reuse_notification
  @timestamp = params[:timestamp]
  @ip = params[:ip]
  _mail params[:email], QuoVadis.translate('mailer.notification.totp_reuse')
end

#totp_setup_notificationObject



42
43
44
45
46
# File 'app/mailers/quo_vadis/mailer.rb', line 42

def totp_setup_notification
  @timestamp = params[:timestamp]
  @ip = params[:ip]
  _mail params[:email], QuoVadis.translate('mailer.notification.totp_setup')
end

#twofa_deactivated_notificationObject



54
55
56
57
58
# File 'app/mailers/quo_vadis/mailer.rb', line 54

def twofa_deactivated_notification
  @timestamp = params[:timestamp]
  @ip = params[:ip]
  _mail params[:email], QuoVadis.translate('mailer.notification.twofa_deactivated')
end