Re: New Auth component asking for login on every page :(

2007-02-28 Thread joradom
you have to set up the Auth object with the allowed actions in your controller: i.e. in my users_controller function beforeFilter() { $this->Auth->userModel = 'User'; $this->Auth->sessionKey = 'My'; $this->Auth->loginRedirect = '/users/index';

Re: Can't save article in bakery (bug fix update for expects() article)

2007-02-27 Thread joradom
hello is there a way to get/download the bakery, or is it only available thru cvs? for what cakephp version is it wrote (1.1x.x. or 1.2.x.x). I think it would be a good thing to have an "oficial sample app" wich could be a guidance for new users in good pratices programming with cakephp. Someti

Re: Simple Form Authentication in 1.2.x.x

2007-02-24 Thread joradom
ok, after a lot of tries and errors :) i got it to work, i was trying a login funtion in my users controller with something like: if(!empty($this->data)) { $this->cleanUpFields(); if (!$this->Auth->login( $this->data))

Re: Simple Form Authentication in 1.2.x.x

2007-02-24 Thread joradom
Hello I think I got the idea behind "simple form authentication", I'm trying to put the new Auth component of cakephp 1.2 at work, but I am unable to make the login works. It seems it get lost somewhere in the identify function, I can see in the debug that the Auth object doesn't get a reference