Class: QuoVadis::Mailer
- Inherits:
-
Object
- Object
- QuoVadis::Mailer
- Defined in:
- app/mailers/quo_vadis/mailer.rb
Instance Method Summary collapse
- #account_confirmation ⇒ Object
- #email_change_notification ⇒ Object
- #identifier_change_notification ⇒ Object
- #password_change_notification ⇒ Object
- #password_reset_notification ⇒ Object
- #recovery_codes_generation_notification ⇒ Object
- #reset_password ⇒ Object
- #totp_reuse_notification ⇒ Object
- #totp_setup_notification ⇒ Object
- #twofa_deactivated_notification ⇒ Object
Instance Method Details
#account_confirmation ⇒ Object
11 12 13 14 |
# File 'app/mailers/quo_vadis/mailer.rb', line 11 def account_confirmation @otp = params[:otp] _mail params[:email], QuoVadis.translate('mailer.confirmation.subject') end |
#email_change_notification ⇒ Object
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_notification ⇒ Object
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_notification ⇒ Object
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_notification ⇒ Object
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_notification ⇒ Object
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_password ⇒ Object
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_notification ⇒ Object
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 |