i already have a 'password2' in my form for password confirmation. Can you please give me an example of what you are referring about?
Thanks.^_^ On Sep 27, 3:50 am, "Jon Bennett" <[EMAIL PROTECTED]> wrote: > > > 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 -~----------~----~----~----~------~----~------~--~---
