>You may also want to have a enum/int to represent what kind of token it is.
New user, new email, forgot password, etc..

To have a field in the user-account table to store this value?  Or do you
mean to send this as part of the activation URL?

And what is the purpose to have this?

On Thu, May 15, 2008 at 6:42 PM, Ryan Gravener <[EMAIL PROTECTED]>
wrote:

> You may also want to have a enum/int to represent what kind of token it is.
> New user, new email, forgot password, etc..
>
> On Thu, May 15, 2008 at 7:01 PM, James Carman <[EMAIL PROTECTED]>
> wrote:
>
> > java.util.UUID.randomUUID().toString()
> >
> > On Thu, May 15, 2008 at 6:57 PM, Matthew Young <[EMAIL PROTECTED]>
> wrote:
> > > I need to implement the usual account activation via email function.
>  Can
> > > anyone point me to some example of how this is implemented? If in
> Wicket
> > > even better but anything would help me a lot.
> > >
> > > One question I have is how to generate hard to guess unique keys in the
> > > email link? I use Hibernate & MySql, does this give me some easy way to
> > > generate these keys? Use Jakarta common-id to generate uuid?
> > >
> > > I plan to have an activation field in the user table to store the
> > activation
> > > key, once the user respond to the activation email link, clear the
> field
> > to
> > > indicate the account is activated. Is this how it's done?
> > >
> > > Thanks for any help!
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Ryan Gravener
> http://twitter.com/ryangravener
>

Reply via email to