Class PasswordNotifications
In: app/models/password_notifications.rb
Parent: ActionMailer::Base

A mailer to handle notifications for modifying your password.

Methods

Included Modules

Login::MailConfig

Public Instance methods

Will send a message to the given user with the given link that should lead them to a page to reset their password.

[Source]

    # File app/models/password_notifications.rb, line 7
 7:   def forgot_password(user, reset_link)
 8:     recipients user.email
 9:     from system_email(reset_link)
10:     subject "#{subject_prefix}Forgotton Password"
11:     body :user => user, :reset_link => reset_link
12:   end

Will send a message to the given user to let me know their password has been changed. It will include a link that will allow them to reset their password in case they were not the ones that changed it.

[Source]

    # File app/models/password_notifications.rb, line 18
18:   def updated_password(user, reset_link)
19:     recipients user.email
20:     from system_email(reset_link)
21:     subject "#{subject_prefix}Password Updated"
22:     body :user => user, :reset_link => reset_link
23:   end

[Validate]