summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorTom Bell <tomb@tomb.io>2016-08-03 20:30:49 +0100
committerTom Bell <tomb@tomb.io>2016-08-05 19:27:36 +0100
commit8720a6e4ef47675f5778b140b6b56615f808aff4 (patch)
treee7561eb7cc962a5004a4c8d864da4836d8183f03 /config
parent8765d2f9ca94533c69edc90e41fc25fa5e98e018 (diff)
downloadgitlab-ce-8720a6e4ef47675f5778b140b6b56615f808aff4.tar.gz
Update to send changed password notification emails
Add the devise initializer config setting to enable the sending of notification emails when a user changes their password.
Diffstat (limited to 'config')
-rw-r--r--config/initializers/devise.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb
index 73977341b73..a0a8f88584c 100644
--- a/config/initializers/devise.rb
+++ b/config/initializers/devise.rb
@@ -100,6 +100,9 @@ Devise.setup do |config|
# secure: true in order to force SSL only cookies.
# config.cookie_options = {}
+ # Send a notification email when the user's password is changed
+ config.send_password_change_notification = true
+
# ==> Configuration for :validatable
# Range for password length. Default is 6..128.
config.password_length = 8..128