Okay, I've finally managed to resolve this, it was a basic mistake. Here's what I did:
I debugged the post data and saw that in $this->request->data, my login fields were under the key 'customer_users' (which is the name of my users table) > Array > ( > [customer_users] => Array > ( > [username] => [email protected] > [password] => abcdefg1234567 > ) > ) I had assumed that so long as there was a username and password field in my POST data, the login would work. In my login.ctp, I have the following code to generate my login form: echo $this->Form->create(), > $this->Form->input('username'), > $this->Form->password('password'), > $this->Form->end("Log In"); I changed it to the following: echo $this->Form->create('User'), > $this->Form->input('username'), > $this->Form->password('password'), > $this->Form->end("Log In"); .. and the logins now work. I didn't see any error specifying that the Auth component couldn't see any credentials in the post - it'd have saved me a lot of time. My users table has a habtm relationship with customer_orgs, is there a way to have the Auth component return data from linked tables? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
