registration/email activation tut
Posted: Fri Dec 02, 2011 2:50 pm
Hi guys
Regarding the registration/email activation tut...
Say the user activates, and then they hit the activation link in their email again. Why does mysql NOT throw a warning after the
I ask as I've added more things to complete in the activation, each one checking for an error. I noticed that clicking the activation link AFTER the account has been activated resulted in processes in my code being carried out that shouldn't if the user is already activated.
Thanks again!
Shaun
Regarding the registration/email activation tut...
Say the user activates, and then they hit the activation link in their email again. Why does mysql NOT throw a warning after the
mysql_query("DELETE FROM `user_activations` WHERE `activation_code` = '{$aid}'");query? ie - the activation code that you're asking it to delete isn't there anymore - so shouldn't a warning or some sort of error come up?
I ask as I've added more things to complete in the activation, each one checking for an error. I noticed that clicking the activation link AFTER the account has been activated resulted in processes in my code being carried out that shouldn't if the user is already activated.
Thanks again!
Shaun