Remove unused devise strategies (#38795)

This commit is contained in:
Claire 2026-04-23 16:26:19 +02:00 committed by GitHub
parent 0142a4a9de
commit be4ba1495c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -98,11 +98,6 @@ Devise.setup do |config|
manager.default_strategies(scope: :user).unshift :two_factor_ldap_authenticatable if Devise.ldap_authentication
manager.default_strategies(scope: :user).unshift :two_factor_pam_authenticatable if Devise.pam_authentication
manager.default_strategies(scope: :user).unshift :session_activation_rememberable
unless ENV['DISABLE_DEVISE_TWO_STRATEGIES'] == 'true'
manager.default_strategies(scope: :user).unshift :two_factor_authenticatable
manager.default_strategies(scope: :user).unshift :two_factor_backupable
end
end
# The secret key used by Devise. Devise uses this key to generate