module Sorcery::Controller::Submodules::BruteForceProtection

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.

Public Class Methods

included(base) click to toggle source
# 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