Class: SessionMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- SessionMailer
show all
- Includes:
- Authpwn::SessionMailer
- Defined in:
- lib/authpwn_rails/generators/templates/session_mailer.rb
Instance Method Summary
collapse
#email_verification_email, #reset_password_email
Instance Method Details
#email_verification_from(token, server_hostname, protocol) ⇒ Object
9
10
11
12
|
# File 'lib/authpwn_rails/generators/templates/session_mailer.rb', line 9
def email_verification_from(token, server_hostname, protocol)
%Q|"#{server_hostname} staff" <admin@#{server_hostname}>|
end
|
#email_verification_subject(token, server_hostname, protocol) ⇒ Object
4
5
6
7
|
# File 'lib/authpwn_rails/generators/templates/session_mailer.rb', line 4
def email_verification_subject(token, server_hostname, protocol)
"#{server_hostname} e-mail verification"
end
|
#reset_password_from(token, server_hostname, protocol) ⇒ Object
19
20
21
22
|
# File 'lib/authpwn_rails/generators/templates/session_mailer.rb', line 19
def reset_password_from(token, server_hostname, protocol)
%Q|"#{server_hostname} staff" <admin@#{server_hostname}>|
end
|
#reset_password_subject(token, server_hostname, protocol) ⇒ Object
14
15
16
17
|
# File 'lib/authpwn_rails/generators/templates/session_mailer.rb', line 14
def reset_password_subject(token, server_hostname, protocol)
"#{server_hostname} password reset"
end
|