[Cosmo-dev] account activation link persistence

Randy Letness randy at osafoundation.org
Thu Nov 16 19:10:49 PST 2006


Randy Letness wrote:
> hat about storing a hash in the User record?  You can use a generated 
> UUID for this, as there is very little chance for collision.  Then you 
> look up the user by this id, and you can use isActivated (boolean) and 
> creationDate to determine expiration.  This seems too simple, am I 
> missing something?
>

And you don't even need a isActivated, you can clear the hash at 
activation, so isActivated becomes hash==null.

-Randy


More information about the cosmo-dev mailing list