Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

UserSession.create(user) returns unauthorized_record #325

Closed
giangnguyennet opened this Issue · 1 comment

1 participant

@giangnguyennet

I have the exactly same problem at the moment as this one anyway I'm creating a new issue report as that one was 2 years old.

us = UserSession.create(user, true)
logger.info us.inspect # => #<UserSession: {:unauthorized_record=>"<protected>"}>

and no current_user created.

My persistence_token are not blank for any records.

I'm using Rails 3.1.3, Ruby 1.9.2-p290, Authlogic 3.1.0

Any ideas?

@giangnguyennet

Finally I got this solved by moving the code to create a new session into Model instead of Controller. Not sure why but works though.

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.