Module: Sorcery::Controller::Submodules::BruteForceProtection
- Defined in:
- lib/sorcery/controller/submodules/brute_force_protection.rb
Overview
This module helps protect user accounts by locking them down after too many failed attemps to login were detected. This is the controller part of the submodule which takes care of updating the failed logins and resetting them. See Sorcery::Model::Submodules::BruteForceProtection for configuration options.
Defined Under Namespace
Modules: InstanceMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/sorcery/controller/submodules/brute_force_protection.rb', line 11 def self.included(base) base.send(:include, InstanceMethods) Config.after_login << :reset_failed_logins_count! Config.after_failed_login << :update_failed_logins_count! end |