> > I want to validate the length of my password using the cakephp model's > > validation. However, since the password is being hashed before it is > > saved on the database, my length validation criteria becomes void. We > > all know that a hashed password contains many characters. > > > I would make a copy of 'password' before it gets to the Auth > component, and add a rule for that instead.
hmm, might have been a little hasty there, as you won't have a field in your form for 'password_plain' and therefore won't ever see the error message. How about adding an extra field to your form of 'password_confirm', then adding the rule to that. If the confirmation fails you'll then see the error message (and you can check they are the same). hth jon -- jon bennett w: http://www.jben.net/ iChat (AIM): jbendotnet Skype: jon-bennett --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
