Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
10-18-2013, 06:40 AM #1
- Join Date
- Mar 2011
- Thanked 0 Times in 0 Posts
Cakephp authentication from two tables
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