Add an option to not automatically sign in a user after changing a password (#4569)

This commit is contained in:
kenji kobayashi
2018-12-28 22:29:58 +09:00
committed by Leonardo Tegon
parent 8266e85576
commit e3a00b27d1
7 changed files with 78 additions and 8 deletions

View File

@@ -9,7 +9,7 @@ Devise.setup do |config|
# Devise will use the `secret_key_base` as its `secret_key`
# by default. You can change it below and use your own secret key.
# config.secret_key = '<%= SecureRandom.hex(64) %>'
# ==> Controller configuration
# Configure the parent class to the devise controllers.
# config.parent_controller = 'DeviseController'
@@ -290,4 +290,10 @@ Devise.setup do |config|
# ActiveSupport.on_load(:devise_failure_app) do
# include Turbolinks::Controller
# end
# ==> Configuration for :registerable
# When set to false, does not sign a user in automatically after their password is
# changed. Defaults to true, so a user is signed in automatically after changing a password.
# config.sign_in_after_change_password = true
end