Module: Foreman::Controller::BruteforceProtection

Extended by:
ActiveSupport::Concern
Included in:
Api::BaseController, Api::GraphqlController, UsersController
Defined in:
app/controllers/concerns/foreman/controller/bruteforce_protection.rb

Instance Method Summary collapse

Instance Method Details

#bruteforce_attempt?Boolean

Returns:

  • (Boolean)

8
9
10
# File 'app/controllers/concerns/foreman/controller/bruteforce_protection.rb', line 8

def bruteforce_attempt?
  session[:user].nil? && bruteforce_protection.bruteforce_attempt?
end