Sha256: d01b32a8577d2f202bddc90c019623353cacfea11f11f270e959c34e5aa3fb4b

Contents?: true

Size: 724 Bytes

Versions: 14

Compression:

Stored size: 724 Bytes

Contents

module Authlogic
  module Session
    # Maintains the perishable token, which is helpful for confirming records or authorizing records to reset their password. All that this
    # module does is reset it after a session have been saved, just keep it changing. The more it changes, the tighter the security.
    #
    # See Authlogic::ActsAsAuthentic::PerishableToken for more information.
    module PerishableToken
      def self.included(klass)
        klass.after_save :reset_perishable_token!
      end

      private
        def reset_perishable_token!
          record.reset_perishable_token if record.respond_to?(:reset_perishable_token) && !record.disable_perishable_token_maintenance?
        end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
refinerycms-0.9.6.34 vendor/plugins/authlogic/lib/authlogic/session/perishable_token.rb
refinerycms-0.9.6.33 vendor/plugins/authlogic/lib/authlogic/session/perishable_token.rb
refinerycms-0.9.6.32 vendor/plugins/authlogic/lib/authlogic/session/perishable_token.rb
refinerycms-0.9.6.31 vendor/plugins/authlogic/lib/authlogic/session/perishable_token.rb
refinerycms-0.9.6.30 vendor/plugins/authlogic/lib/authlogic/session/perishable_token.rb
refinerycms-0.9.6.29 vendor/plugins/authlogic/lib/authlogic/session/perishable_token.rb
refinerycms-0.9.6.28 vendor/plugins/authlogic/lib/authlogic/session/perishable_token.rb
refinerycms-0.9.6.27 vendor/plugins/authlogic/lib/authlogic/session/perishable_token.rb
refinerycms-0.9.6.26 vendor/plugins/authlogic/lib/authlogic/session/perishable_token.rb
refinerycms-0.9.6.25 vendor/plugins/authlogic/lib/authlogic/session/perishable_token.rb
refinerycms-0.9.6.24 vendor/plugins/authlogic/lib/authlogic/session/perishable_token.rb
refinerycms-0.9.6.23 vendor/plugins/authlogic/lib/authlogic/session/perishable_token.rb
refinerycms-0.9.6.22 vendor/plugins/authlogic/lib/authlogic/session/perishable_token.rb
refinerycms-0.9.6.21 vendor/plugins/authlogic/lib/authlogic/session/perishable_token.rb