Hi, my question is as in the title. Thanks, Michal.
views:
103answers:
1That looks like it, but what is "record"? When I implement that piece of code I get: "The error occurred while evaluating nil.reset_persistence_token"Thank, Michal.
jokinn
2010-02-18 12:53:55
This code needs to be added to the UserSession model. Not the User one.The "record" represents the user that's trying to log himself in.
Damien MATHIEU
2010-02-18 15:23:46
It is in UserSession, exactly how instructed, and it is nil.
jokinn
2010-02-18 15:54:08
Do you have the last version of authlogic ?
Damien MATHIEU
2010-02-18 16:40:41
I do have the latest version indeed, I don't understand why it doesn't work :(
jokinn
2010-02-22 09:48:25
OK, so it seems that record is only nil, when an automatic logout happens (a user session timeout).
jokinn
2010-02-25 10:01:39