Class: RodauthMailer
- Inherits:
-
ApplicationMailer
- Object
- ApplicationMailer
- RodauthMailer
- Defined in:
- lib/generators/rodauth/templates/app/mailers/rodauth_mailer.rb
Instance Method Summary collapse
- #password_changed(name, account_id) ⇒ Object
- #reset_password(name, account_id, key) ⇒ Object
- #verify_account(name, account_id, key) ⇒ Object
- #verify_login_change(name, account_id, key) ⇒ Object
Instance Method Details
#password_changed(name, account_id) ⇒ Object
24 25 26 27 28 29 |
# File 'lib/generators/rodauth/templates/app/mailers/rodauth_mailer.rb', line 24 def password_changed(name, account_id) @rodauth = rodauth(name, account_id) @account = @rodauth.rails_account mail to: @account.email, subject: @rodauth.password_changed_email_subject end |
#reset_password(name, account_id, key) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/generators/rodauth/templates/app/mailers/rodauth_mailer.rb', line 9 def reset_password(name, account_id, key) @rodauth = rodauth(name, account_id) { @reset_password_key_value = key } @account = @rodauth.rails_account mail to: @account.email, subject: @rodauth.reset_password_email_subject end |
#verify_account(name, account_id, key) ⇒ Object
2 3 4 5 6 7 |
# File 'lib/generators/rodauth/templates/app/mailers/rodauth_mailer.rb', line 2 def verify_account(name, account_id, key) @rodauth = rodauth(name, account_id) { @verify_account_key_value = key } @account = @rodauth.rails_account mail to: @account.email, subject: @rodauth.verify_account_email_subject end |
#verify_login_change(name, account_id, key) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/generators/rodauth/templates/app/mailers/rodauth_mailer.rb', line 16 def verify_login_change(name, account_id, key) @rodauth = rodauth(name, account_id) { @verify_login_change_key_value = key } @account = @rodauth.rails_account @new_email = @account.login_change_key.login mail to: @new_email, subject: @rodauth.verify_login_change_email_subject end |