'Remember me' in acts_as_authenticated troubles

Hi there

I’m having trouble getting the ‘remember me’ functionality going in

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 S.

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs