Using record_id as persistence token #82

Closed
walleyemi opened this Issue Dec 16, 2009 · 1 comment

Comments

Projects
None yet
2 participants

In authlogic/lib/session/session.rb, the following code:

def session_credentials
  [controller.session[session_key], controller.session["#{session_key}_#{klass.primary_key}"]].compact
end

plus this code:

persistence_token, record_id = session_credentials

can result in the record_id being treated as the persistence token if the persistence token is nil and the record id is not. This exact case came up when I left the persistence_tokens out of my fixtures. Is the compact call necessary?

Collaborator

jaredbeck commented Feb 19, 2017

Closing after 8 years of inactivity.

@jaredbeck jaredbeck closed this Feb 19, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment