Topic: Clean up non-validated registrations? (Read 1174 times)
Where are my glasses?
Posts: 22
176 credits Members referred : 0
« on: Aug 30, 2006, 06:22:35 am »
I'd like to be able to delete people from the database if they haven't validated their registration after a period of time. I think the best way is to add a timestamp field to the user table, and populate it with date/time information in the class function register_user. Then I can run a cron job to whack all the non-validated registrations over a certain age.
Does this seem like the right way to do it?
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6691
34714 credits Members referred : 374
It's time to use PHP5!
« Reply #1 on: Aug 30, 2006, 08:41:25 am »
hello,
I did something similar in a modified version of this class but for this feature you need more information like the date and a field with the information that the account is not validated. I f you want to deactivate users after wards (to block them by email address or something) than you can't use the field "active".
I will add this feature later (but not so fast)
Where are my glasses?
Posts: 22
176 credits Members referred : 0
« Reply #2 on: Aug 30, 2006, 06:27:20 pm »
My feeling was, check the "active" field and an additional timestamp field to see which had not been activated and where over a certain age... But I'm still working my way through understanding the function ins_string.
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=3886