Class: RodauthMailer

Inherits:
ApplicationMailer
  • Object
show all
Defined in:
lib/generators/rodauth/templates/app/mailers/rodauth_mailer.rb

Instance Method Summary collapse

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, )
  @rodauth = rodauth(name, )
  @account = @rodauth.

  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, , key)
  @rodauth = rodauth(name, ) { @reset_password_key_value = key }
  @account = @rodauth.

  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 (name, , key)
  @rodauth = rodauth(name, ) { @verify_account_key_value = key }
  @account = @rodauth.

  mail to: @account.email, subject: @rodauth.
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 (name, , key)
  @rodauth = rodauth(name, ) { @verify_login_change_key_value = key }
  @account = @rodauth.
  @new_email = @account..

  mail to: @new_email, subject: @rodauth.
end