mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-09 14:58:05 -05:00
Add an option to not automatically sign in a user after changing a password (#4569)
This commit is contained in:
committed by
Leonardo Tegon
parent
8266e85576
commit
e3a00b27d1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user