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

2007-03-15 Thread digital spaghetti
Hi Nate, Ok - I discovered what I was doing. I was setting $this->Auth->fields['password'] = 'passwd'; in my app_controller. I needed to define it in my users_controller. Now that's working I'm still getting the MD5 problem - Auth seems to be using plain text passwords, as it doesn't recognise

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

2007-03-14 Thread nate
It's cool y'all, just chill for a bit. Help is on the way... yeah baby, help is on the way. digital spaghetti: If you $this->Auth->fields = array('password' => 'passwd'), that leaves it without a user name. You need to either do: $this->Auth->fields['password'] = 'passwd'; - or - $this->Auth->

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

2007-03-14 Thread digital spaghetti
Yea, unfortunatly I got that today as well (a piss off) I managed to get it implemented, but still hit a few snags: Defining $this->Auth->fields = array('password' = 'passwd'); doesn't seem to work. Just for testing, I changed the var directly in the component and it worked, but it seems at the

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

2007-03-13 Thread BlenderStyle
I got the new AuthComponent going by doing this in UsersController: function beforeFilter() { $this->Auth->allow('index', 'register', 'login', 'logout'); } I'm reading cake/libs/controller/components/auth.php as I go along. My next step is to figure out how to use $this->Auth->login(). I'm sure

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';

New Auth component asking for login on every page :(

2007-02-27 Thread Digital Spaghetti
Hey guys, I'm reasonably new to CakePHP, really only had a play about with it so far but I am ready to take it to the next level. The first thing I am building into my app is the user system, so users can log in and get access to specific areas. I've decided to go with 1.2.x.x branch since it h