To confirm emails you'll want to use 'tickets' once a user registers you send them an email with a secret ticket. They can use that ticket to validate their email, and set the account to active.
This article explains the basic use of tickets in terms of resetting passwords, but I use the identical method when a user first creates an account. http://edwardawebb.com/programming/php-programming/cakephp/reset-lost-passwords-cakephp (if they don't have a password, they can't login..and they won't get a password until they confirm their email.) That way you don't need an extra column in the user's table. Nikhil posted a question very similar to yours in that article and my proposed solution worked for him, I urge you to check it out. On Sep 17, 10:19 pm, Jas <[email protected]> wrote: > I have a 'valid' field in the users table which will be set to 1 after > the user confirms their email. I'm wondering how I'd check during > login that this is 1? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
