Saturday, October 25, 2008

Re: How should I implement two login Section 1: User Login 2: Business Login

I've got a similar need in the app I am working on and elected to go with the
single users table. Working with two instances of Auth sounds messy.

$this->Auth->userScope = array('Model.field' => 'value');

You can set 'field' to something like 'group_id' and have a 'groups' table.
If the degrees of difference between regular and business users is
significant, I'd go the ACL route.
--
View this message in context: http://n2.nabble.com/How-should-I-implement-two-login-Section-1%3A-User-Login--2%3A-Business--Login-tp1377159p1377187.html
Sent from the CakePHP mailing list archive at Nabble.com.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: