Can you pass an extra parameter in cakePHP on $this->Auth->Login
For example, I have a site table like the following;
"Site"
id
name
I could have 40 sites and you should only be able to login to the site you are assigned too. You could also be a member of multiple sites. To define what site they are logging into i'm setting this on the login page.
e.g. http://localhost/login/$id
"Users"
id
username
site_id