On Sun, Jan 18, 2009 at 1:53 PM, Webweave <[email protected]> wrote:
>
> Then you just need to set the model and tell it what the primary key
> is:
>
> $primaryKey = "email";
>
> Then $this->Administrator->id would be the the email.
>
> You might also need to set the Auth fields to match (I do this in my
> App controller's beforeFilter):
>
>        $this->Auth->fields = array('username' => 'user_name',
> 'password' => 'user_password');

I actually tried that, but the key is that my username = primaryKey =
email. For whatever reason, that just didn't work for me (it certainly
could have been a misconfiguration on my part).  Once I dropped a more
conventional id field in there and used email just for the username
everything worked okay.

-- 
Rob Wilkerson
http://robwilkerson.org

--~--~---------~--~----~------------~-------~--~----~
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=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to