This will actually just change the form validation to make sure the username is a valid email address, which I don't believe is his goal
On Sat, Nov 14, 2009 at 2:57 AM, merrylin shi <[email protected]>wrote: > I know ,first cake bake the users table ,generate the user.php ,open the > files change the > var $validate = array( > 'username' => array('notempty') > ); > like > var $validate = array( > 'username' => array('email') > ); > > just ok! > > 2009/11/13 David Roda <[email protected]> > > To accomplish this you will have to override the Auth COmponents >> "authorize" variable and isAuthorized() method to check both the username >> and email. You can read about it here: >> http://book.cakephp.org/view/396/authorize >> >> On Sat, Nov 14, 2009 at 12:40 AM, jburns <[email protected]> wrote: >> >>> Have you considered using the email address as the username (thereby >>> eliminating your problem)? >>> >>> On Nov 14, 4:16 am, Ahmed <[email protected]> wrote: >>> > Does anyone know how I can begin to tackle this feature? >>> >>> -- >>> >>> 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]<cake-php%[email protected]> >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/cake-php?hl=. >>> >>> >>> >> -- >> 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]<cake-php%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/cake-php?hl=. >> > > -- > 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]<cake-php%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/cake-php?hl=. > -- 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=.
