Restful-authentication (activation_code and user.reload)


#1

Hello,

I solved one of my problems with restful-authentication plugin: the
sent activation_code was different than the one in the db.

I found the solution in the readme:
http://github.com/technoweenie/restful-authentication/tree/master/README.textile

“Pay attention, may be this is not an issue for everybody, but if you
should have problems, that the sent activation_code does match with
that in the database stored, reload your user object before sending
its data through email something like:”

I put the user.reload into the observer and now it works, but i don’t
understand why.

Can you tell me?

Thanks,
noocx