diff --git a/app/views/devise/mailer/password_change.html.erb b/app/views/devise/mailer/password_change.html.erb new file mode 100644 index 00000000..75751687 --- /dev/null +++ b/app/views/devise/mailer/password_change.html.erb @@ -0,0 +1,3 @@ +
Hello <%= @resource.email %>!
+ +We're contacting you to notify you that you're password has been changed.
diff --git a/lib/generators/templates/devise.rb b/lib/generators/templates/devise.rb index 3fae04d0..80a5e38c 100644 --- a/lib/generators/templates/devise.rb +++ b/lib/generators/templates/devise.rb @@ -105,6 +105,9 @@ Devise.setup do |config| # Setup a pepper to generate the encrypted password. # config.pepper = '<%= SecureRandom.hex(64) %>' + # Send a notification email on password change + # config.send_password_change_notification = false + # ==> Configuration for :confirmable # A period that the user is allowed to access the website even without # confirming their account. For instance, if set to 2.days, the user will be diff --git a/lib/generators/templates/markerb/password_change.markerb b/lib/generators/templates/markerb/password_change.markerb new file mode 100644 index 00000000..75751687 --- /dev/null +++ b/lib/generators/templates/markerb/password_change.markerb @@ -0,0 +1,3 @@ +Hello <%= @resource.email %>!
+ +We're contacting you to notify you that you're password has been changed.