# File lib/brakeman/checks/check_basic_auth.rb, line 19
  def check_basic_auth_filter
    controllers = tracker.controllers.select do |_name, c|
      c.options[:http_basic_authenticate_with]
    end

    Hash[controllers].each do |name, controller|
      controller.options[:http_basic_authenticate_with].each do |call|

        if pass = get_password(call) and string? pass
          warn :controller => name,
              :warning_type => "Basic Auth",
              :warning_code => :basic_auth_password,
              :message => "Basic authentication password stored in source code",
              :code => call,
              :confidence => :high,
              :file => controller.file
          break
        end
      end
    end
  end