Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Using record_id as persistence token #82

Open
walleyemi opened this Issue · 0 comments

1 participant

@walleyemi

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.