Re: Auth component: username and password in two different models

2008-09-04 Thread Penfold
HI, If the Auth component you have writing extends the original auth then all is good. the way i suggested was a stab in the dark really. Post your comment as a feature request on trac and they might include it. On 4 Sep, 14:11, jbarbede <[EMAIL PROTECTED]> wrote: > I have already try this pos

Re: Auth component: username and password in two different models

2008-09-04 Thread jbarbede
I have already try this possibility. Of course, I thought it will work like you but it doesn't. I read the original Auth component and it can't work because it considers only the userModel for the two fields even if you define your fields like you made it, with two different models. So I wrote a

Re: Auth component: username and password in two different models

2008-09-04 Thread Penfold
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:

Auth component: username and password in two different models

2008-09-03 Thread jbarbede
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