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 <shimeilin1...@gmail.com>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 <davidcr...@gmail.com>
>
>  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 <jeremybu...@me.com> wrote:
>>
>>> Have you considered using the email address as the username (thereby
>>> eliminating your problem)?
>>>
>>> On Nov 14, 4:16 am, Ahmed <ahmed.shar...@gmail.com> 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 cake-...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.com>
>>> .
>>> 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 cake-...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.com>
>> .
>> 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 cake-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.com>
> .
> 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 cake-...@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=.


Reply via email to