View Single Post
Old 10-22-2009, 09:52 PM   #2 (permalink)
adamdecaf
The Addict
 
Join Date: May 2009
Posts: 287
Thanks: 5
adamdecaf is on a distinguished road
Default

You would just store the account in the database like you normally would, only then you set a field to something similar to "verified" or "enabled" and set the value to 0/1, true/false, yes/no. Then in another record you could have a 'secret' and random string of characters that corresponds to the random string in the verification email.

Code:
Database:
  -- username
  -- password
  -- enabled
  -- secret_code
Code:
Email:

Verify your account!
http://mysite.com/verify?code={random_string}
__________________
My Site
adamdecaf is offline  
Reply With Quote