Richard Sandilands
2006-Aug-07 07:31 UTC
[Rails] ''Remember me'' in acts_as_authenticated troubles
Hi there I''m having trouble getting the ''remember me'' functionality going in acts_as_authenticated. The issue seems to be that the login_from_cookie method is using only the first 60 characters of the remember_token string in the database, whereas the string in the db is 75 characters long. I can see in my dev log that login_from_cookie is trying to find the user but using a truncated string to do so. Any clues how to rememdy this would be appreciated. Richard Sandilands
Richard Sandilands
2006-Aug-07 07:35 UTC
[Rails] Re: ''Remember me'' in acts_as_authenticated troubles
On further consideration, it seems that the token getting written to the database has a return at column 61, which maybe explains why only the first 60 chars are getting used to search by login_from_cookie. At this stage I have remember_token as a varchar of 255 chars in the db
Seemingly Similar Threads
- Where can I get "authenticate_with_http_basic"?
- acts_as_authenticated strangeness
- Help. Acts_as_Authenticated plugin stops working for me?
- Data relationships for e-commerce: users, orders, addresses
- restful_authentication: update of users' attributes on every page load upon 'Remember me' being enabled?