This is how to change from the default.

$this->Auth->fields = array('username' => 'email', 'password' =>
'passwd');

It might work if you added the model

$this->Auth->fields = array('username' => 'email.email1', 'password'
=> 'user.passwd');

On 3 Sep, 23:37, jbarbede <[EMAIL PROTECTED]> wrote:
> Hello,
>
>   I try to use the Auth component to authentificate users but It seems
> I can't have a username and a password in two different models.
>
>   I explain the situation in details: a user can connect to the Web
> site with his email and his password. But my application allows a user
> to have several emails whose one primary to connect to the Web site.
> So I manage a model for users and a model for emails.
>
>   Someone who already solved this problem? Or the unique solution
> consists to modify the Auth component to integrate this particularity?
>
> Thanks
>
> Julien
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to