Re: Validating user password after Auth

2009-08-14 Thread Martin Westin
When do you do this validation? Saving a User record or logging n? If it is logging in then IMHO all is fine. Auth should hash anything that comes in. blank password = wrong pasword and all that... If you are editing or creating users then you can name the password field in the edit form to

Re: Validating user password after Auth

2009-08-14 Thread Brendon Kozlowski (Realm)
teknoid posted an article about his method of doing it. Either way should work just fine; Martin's might be a little easier to manage. http://teknoid.wordpress.com/2008/10/08/demystifying-auth-features-in-cakephp-12/ On Aug 14, 2:50 am, Martin Westin martin.westin...@gmail.com wrote: When do

Validating user password after Auth

2009-08-13 Thread Adam
Auth with data validation in my User model doesn't pick up the notEmpty condition -- it hashes the empty string. Is this correct? Do i need to add custom validation to check for this? I cannot use $this-Auth-password() in a Model. Or is there a better way to handle this? Thanks!