[how?] registration completed by email
[how?] registration completed by email
so, we have a simple registration page. how to di it by complete reg by email with unique url?
Re: [how?] registration completed by email
You collect the user's email address during registration. What I would do is generate a unique id key, maybe by hashing their username along with the date or something. Store this hash in the database along with their username. Then generate a url that includes their username and this id key (http://www.something.com/authenticate.p ... ode=idhash) send them this link in an email.
When they click on the link, you get the username and hash from the url on your authenticate page, look up the username in your database and compare the id key to the one you stored earlier. Voila!
When they click on the link, you get the username and hash from the url on your authenticate page, look up the username in your database and compare the id key to the one you stored earlier. Voila!
- vitinho444
- Posts: 2819
- Joined: Mon Mar 21, 2011 4:54 pm
Re: [how?] registration completed by email
that's a really good system oldrod 
Re: [how?] registration completed by email
sounds good but how to insert that system? i dont get it stillOldRod wrote:You collect the user's email address during registration. What I would do is generate a unique id key, maybe by hashing their username along with the date or something. Store this hash in the database along with their username. Then generate a url that includes their username and this id key (http://www.something.com/authenticate.p ... ode=idhash) send them this link in an email.
When they click on the link, you get the username and hash from the url on your authenticate page, look up the username in your database and compare the id key to the one you stored earlier. Voila!
Re: [how?] registration completed by email
Check out these videos:
http://www.youtube.com/watch?v=erFZWX9a ... 77783367C7
There is that one, plus 2 or 3 more in the same series where he details how to do this.
These videos are part of a larger series on building a login/registration system in PHP, which is a good series to watch, but those 3 or 4 videos detail the email registration part.
http://www.youtube.com/watch?v=erFZWX9a ... 77783367C7
There is that one, plus 2 or 3 more in the same series where he details how to do this.
These videos are part of a larger series on building a login/registration system in PHP, which is a good series to watch, but those 3 or 4 videos detail the email registration part.
Re: [how?] registration completed by email
thanksOldRod wrote:Check out these videos:
http://www.youtube.com/watch?v=erFZWX9a ... 77783367C7
There is that one, plus 2 or 3 more in the same series where he details how to do this.
These videos are part of a larger series on building a login/registration system in PHP, which is a good series to watch, but those 3 or 4 videos detail the email registration part.