Re: Auth component not hashing all passwords.

2008-04-04 Thread Chris Hartjes
On Fri, Apr 4, 2008 at 7:43 PM, dw <[EMAIL PROTECTED]> wrote: > > thanks for the replies. i've been picking through auth.php for some > glimmer of what might be going on, but no dice. the thing which > baffles me is that it works for one method but not the other. here is > some code (i include

Re: Auth component not hashing all passwords.

2008-04-04 Thread dw
thanks for the replies. i've been picking through auth.php for some glimmer of what might be going on, but no dice. the thing which baffles me is that it works for one method but not the other. here is some code (i included the model, controller, and the two views): http://bin.cakephp.org/view/10

Re: Auth component not hashing all passwords.

2008-04-04 Thread Baz
The name of the filed isn't an issue. Although for a true implementation he'll have to user fields such as new_password, he shouldn't have to for his implementation. He said that all the vies have the same $form->password('User.password', array('size' => '30','label'=>false)) I'm assuming all of

Re: Auth component not hashing all passwords.

2008-04-04 Thread aranworld
Have you tried this out using a different name for the column holding the password? I call my password field "passwd", because I believe 'password' is a reserved keyword in MySQL. At any rate, I found that in order to perform data validation on the submitted password, I had to manually hash the

Re: Auth component not hashing all passwords.

2008-04-04 Thread Baz
Yes, that's what I meanthmmmph...well Do some code dumps in bin.cakephp.org I guess On Fri, Apr 4, 2008 at 1:53 PM, dw <[EMAIL PROTECTED]> wrote: > > Do you mean in the controllers? I do call parent::beforeFilter() in > each of their beforeFilter(). > > On Apr 4, 11:32 am, Baz <[EMAIL PROTEC

Re: Auth component not hashing all passwords.

2008-04-04 Thread dw
Do you mean in the controllers? I do call parent::beforeFilter() in each of their beforeFilter(). On Apr 4, 11:32 am, Baz <[EMAIL PROTECTED]> wrote: > In your other models, are you calling parent::beforeFilter() in > beforeFilter? > > On Fri, Apr 4, 2008 at 1:07 PM, dw <[EMAIL PROTECTED]> wrote:

Re: Auth component not hashing all passwords.

2008-04-04 Thread Baz
In your other models, are you calling parent::beforeFilter() in beforeFilter? On Fri, Apr 4, 2008 at 1:07 PM, dw <[EMAIL PROTECTED]> wrote: > > I have a User model, which has an admin_add function. The user's > password is being hashed just fine. I also have an admin_pw function, > with which a

Auth component not hashing all passwords.

2008-04-04 Thread dw
I have a User model, which has an admin_add function. The user's password is being hashed just fine. I also have an admin_pw function, with which an admin can change a user's password, and a change_pw function, which lets the user change their own password. The Auth component is not hashing passwo