Thanks for the suggestions. I think I'll just end up using one table for
all users.. *sigh*

It makes sense. A lot less work obviously.

Thanks. Time to rewrite a ton of code :P


On Tue, Apr 2, 2013 at 5:14 PM, Advantage+ <[email protected]> wrote:

> Agree. ****
>
> All users should be in Users. ****
>
> Get the role_id and then use that as a way to separate the 2 different
> "roles".****
>
> ** **
>
> And you do not need ACL if you run it with admin / members . prefix you
> can simply use Confing.routing prefix's and go from there.****
>
> ** **
>
> *From:* [email protected] [mailto:[email protected]] *On
> Behalf Of *André Luis
> *Sent:* Tuesday, April 02, 2013 6:41 PM
> *To:* [email protected]
> *Subject:* Re: Registration - Teacher & Students - Multiple Auth?****
>
> ** **
>
> Dude, take a minute to read about ACL...****
>
> ** **
>
> But my suggestion is to use ONE table for all users, but create the roles
> for the GROUP, not for the USER, and assign a group to an user... Just a
> suggestion****
>
> ** **
>
> Actually i have plugin wich has a component, called LockerComponent, it
> extends the AuthComponent, so it makes the samething but with some
> features. The groups and roles can be created in a separate file in
> /app/Config/locker.php, I prefer this solution tham Cake´s solution.****
>
>
> Em segunda-feira, 1 de abril de 2013 16h18min06s UTC-3, Nathan Pierce
> escreveu:****
>
> Hey y'all, I got a question. ****
>
> ** **
>
> I've got the registration form for my site putting stuff in the database,
> but I'm wondering if someone has any suggestions on how I can achieve some
> features.****
>
> ** **
>
> 1. I'm going to have a table for teachers and students. They will have two
> separate login forms on the site, one more simple than the other. I'm
> focusing on students right now, since it's using the UsersController, etc.
> I'm just wondering if someone has any suggestion on using cakephp and
> having two separate auth systems. Is there some documentation somewhere
> about this? I want two separate tables in the database, I don't want all
> users in one giant ass database table and then having roles, etc.****
>
> ** **
>
> 2. I need a way to identify student login sessions from teachers sessions
> so I can do some if logic and send them to the proper dashboard/etc. I'm
> new to cake, so I'm wondering if there is a best method someone can suggest
> to me. I'm trying to keep things standard to cake, which will be
> impossible, but I'm still trying. I'm guessing I need to assign a role to
> the user when they signup and then just use that. Right? Or should I use
> another system to do this and have them all in one database? I'd really
> like them split up..****
>
> ** **
>
> Thanks for your time!****
>
> --
> 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 [email protected].
>
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>  ****
>
>  --
> 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 a topic in the
> Google Groups "CakePHP" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/cake-php/Gt-thMbejx0/unsubscribe?hl=en.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Thank you for your time,
- Nathan P

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to