Hi, If this for a change of password or user registration, you will have a confirm password field, this wont be sha1 by the auth conponent, so do all the validation on this, then encrypt it and compare to the password.
On 24 Sep, 00:05, rocket <[EMAIL PROTECTED]> wrote: > So I have validation code for my user password ($password) in my model > to be 6-20 characters, but I am doing sha1($password) on my password > before it gets passed into the $this->User->save() operation, so it > always bypasses the validation requirement (since sha1 creates a > really big string). > > How do I sha1 my stuff right before it gets saved in the model? > > Ideally I'd like to pass my unencrypted password strings, then sha1 > them right before the save, instead of sha1'ing them in my controller > first. > > Where does this kind of code belong? > > danke --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
