Wednesday, July 17, 2013

Re: User Authentication with 2 different tables

When the user goes to log in, what determines which table is used?

Did you read this page:
http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html

Specifically "

Configuring Authentication handlers"?


It appears to me that you can do something in the before filter to figure out which table you want the Auth to use and pass in the configuration parameters there.



On Wednesday, July 10, 2013 6:45:44 PM UTC+7, Marius Heil wrote:
Hello,

what's the best approach for the following?:
I have normal web users and admin users, admin users
I need the admin users to stay in a different database than the webusers

My admin users and web users have a different table structure that I do not want to merge.
So I basically just want authentication and authorization with those two tables, what should I do?

Thanks,
Marius

--
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 cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments: