Re: Help with authentication

2009-09-10 Thread WebbedIT
Sorry, to answer your question directly ... > So are you saying that I have only one Auth code in my complete application? No I said that I am unsure if you can do that, there are a lot more experienced bakers within this group that may tell you this is possible, but to me is just seems wrong.

Re: Help with authentication

2009-09-10 Thread WebbedIT
It makes sense to have one authentication system to handle a full app as there should be only one users table to authenticate against. If users need different privileges then you handle that with something as simple as User Groups or you go more complex with ACL which is built to handle user priv

Re: Help with authentication

2009-09-09 Thread Shashidhar Gampa
Thank you for the response. So are you saying that I have only one Auth code in my complete application? Can't we have multiple Auth code in different controllers and treat them differently? That is each controller have their own Auth code. Is that not possiable in cakePHP? Regards, Shashidhar.G

Re: Help with authentication

2009-09-08 Thread WebbedIT
I think you are approaching this the wrong way. Why have two models with alternate Auth configurations? I'm not even sure if this is possible or what implications it has as once a user is logged in how does the system then know which Auth Model to recheck authentication against? I specify Auth'

Help with authentication

2009-09-07 Thread Shashidhar
Hi All, I am facing a problem with cakePHP Authentication code. I have a users table as CREATE TABLE IF NOT EXISTS `users` ( `id` int(11) NOT NULL auto_increment, `email` varchar(50) NOT NULL, `password` varchar(50) NOT NULL, `user_type` enum('A','N') NOT NULL COMMENT 'A:Admin, N:Normal