Module: Authlogic::Session::PerishableToken

Included in:
Base
Defined in:
lib/novelys_authlogic/session/perishable_token.rb

Overview

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.

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



8
9
10
# File 'lib/novelys_authlogic/session/perishable_token.rb', line 8

def self.included(klass)
  klass.after_save :reset_perishable_token!
end