Sha256: 588e751e206da7e25cdaeea16da3664b648ae9153b6714d97def306a0239e861

Contents?: true

Size: 458 Bytes

Versions: 7

Compression:

Stored size: 458 Bytes

Contents

# frozen_string_literal: true

module Datadog
  module AppSec
    module Contrib
      module Devise
        module Patcher
          # To avoid tracking new sessions that are created by
          # Rememberable strategy as Login Success events.
          module RememberablePatch
            def validate(*args)
              @_datadog_skip_track_login_event = true

              super
            end
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
datadog-2.9.0 lib/datadog/appsec/contrib/devise/patcher/rememberable_patch.rb
datadog-2.8.0 lib/datadog/appsec/contrib/devise/patcher/rememberable_patch.rb
datadog-2.7.1 lib/datadog/appsec/contrib/devise/patcher/rememberable_patch.rb
datadog-2.7.0 lib/datadog/appsec/contrib/devise/patcher/rememberable_patch.rb
datadog-2.6.0 lib/datadog/appsec/contrib/devise/patcher/rememberable_patch.rb
datadog-2.5.0 lib/datadog/appsec/contrib/devise/patcher/rememberable_patch.rb
datadog-2.4.0 lib/datadog/appsec/contrib/devise/patcher/rememberable_patch.rb