• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

confirmation identity via email

 
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,
I'd like to send an email to confirm the user identity after he self registered on my web app. I think that send an url with the action path and the user id is not a good idea.
Can anyone give me a suggestion or some link to resources out on the web?

Thanks in advance.
 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can encode the user ID (and whatever other info you need) and associate the encoded number/characters with the user. For example, generate a simple hashCode (or something more sophisticated) from the user ID, and store both pieces of info in your db. Send the link to user with that encoded info as a URL parameter. When the user clicks on it, you can get the encoded URL parameter and retrieve the user ID from the database.
I think that's what most real life systems do.
 
Alessandro Ilardo
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks for your suggestion. It makes sense.
reply
    Bookmark Topic Watch Topic
  • New Topic