Re: AuthComponent - Multiple Setups

2011-11-02 Thread Thiago Belem
Looks like i've found the problem: the propety sessionKey of AuthComponent is defined as static... So even if i try to change it on my AppController it simply doesn't work for the next verifications. I've submited a ticket on the lighthouse: http://cakephp.lighthouseapp.com/projects/42648-cakep

Re: AuthComponent - Multiple Setups

2011-11-02 Thread Thiago Belem
No... I have two separated prefixes, one called "aluno" (model Student) and other called "admin" (model User). I want to create separate authenticatated areas, and a logged user can't access both. That's why I created two AuthComponent configurations, using different models and options. But at v

Re: AuthComponent - Multiple Setups

2011-11-02 Thread Điển vũ
Edit: Do you mean : *Admin* to the *Student* login screen if I can't find a *Admin *? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To

AuthComponent - Multiple Setups

2011-11-02 Thread Thiago Belem
I'm using the *AuthComponent* to control the access to two prefixes: "admin" and "student". I'm changing the AuthComponent configuration (model, fields, userScope, loginAction and even sessionKey) on AppController::beforeFilter() but once i'm logged with one user Model at "admin', AuthComponent sa