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

@@ -180,6 +180,12 @@ Devise.setup do |config|
# manager.default_strategies(scope: :user).unshift :some_external_strategy
# 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
ActiveSupport.on_load(:devise_failure_app) do
require "lazy_load_test_module"
include LazyLoadTestModule