I am using cakephp 2.0, I have two tables called `accounts`,`subaccounts` with fields as id,email,password. The table `accounts` contains the main account of a user and table `subaccounts` contains the sub account of a user in the `accounts` table.
I have one login action for both of these accounts and subaccounts. What i planning do is that when a user enter an email and password in the login form then it will check the email id and password in both the `accounts` and `subaccounts` table and if any of these table match with the login information then it will go to the home page. Is it possible with the Cakephp using Auth Component ? If anyone knows the solution please help me to sort out.
Thanks in advance