Results 1 to 2 of 2
06-08-2009, 12:15 PM #1
- Join Date
- Jun 2009
change account details w/ email confirmation
I already have a site with users and everything.
I want to allow users to change their e-mail and passwords, but I want them to have to confirm it through e-mail.
I'm just not really sure how I should go about it.
I was considering generating a random string, then sending them an e-mail with a link containing that code, but that would require me to add 2 extra fields to the users table, one for the code and one for new e-mail/password, which seems like a waste.
Any one done this before, or have any suggestions?
I'm using php4 and mysql. This is more of a psuedocode question, rather than php, considering I'm fairly good with php.
07-08-2009, 09:02 AM #2
- Join Date
- Jul 2009
Well what I would do!
If your requiring the e-mail/password change, is simply do it via the link to confirm.
and on the confirm-change.php, you would verify the suer by userid, email first, and stuff like that. You would have to secure this so people couldn't just fill info in to that link and have it change...
Anyways, just an idea.