File: reset_password_notify.rb

package info (click to toggle)
ruby-rodauth 2.42.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 812 kB
  • sloc: ruby: 7,524; javascript: 100; makefile: 4
file content (16 lines) | stat: -rw-r--r-- 387 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen-string-literal: true

module Rodauth
  Feature.define(:reset_password_notify, :ResetPasswordNotify) do
    depends :reset_password
    loaded_templates %w'reset-password-notify-email'
    email :reset_password_notify, 'Password Reset Completed', :translatable=>true

    private

    def after_reset_password
      super
      send_reset_password_notify_email
    end
  end
end