module Authlogic::Session::PerishableToken
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.
Public Class Methods
included(klass)
click to toggle source
# File lib/authlogic/session/perishable_token.rb, line 8 def self.included(klass) klass.after_save :reset_perishable_token! end
Private Instance Methods
reset_perishable_token!()
click to toggle source
# File lib/authlogic/session/perishable_token.rb, line 13 def reset_perishable_token! record.reset_perishable_token if record.respond_to?(:reset_perishable_token) && !record.disable_perishable_token_maintenance? end