10-22-2009, 09:52 PM
|
#2 (permalink)
|
|
The Addict
Join Date: May 2009
Posts: 287
Thanks: 5
|
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}
|
|
|
|