@Amit First...., Thanks man.
Second..., Do you know how to implement Solution 1 above ? On Dec 21, 12:47 pm, Amit Badkas <[email protected]> wrote: > Hi, > > If your form has password confirmation field then you can add 'not empty' > and 'length check' validations for that field as it won't contain hashed > value. > > Amit Badkas > > PHP Applications for E-Biz:http://www.sanisoft.com > > On Mon, Dec 20, 2010 at 10:43 PM, John Maxim <[email protected]> wrote: > > 'password' => array( > > 'notEmpty' => array( > > 'rule' => 'notEmpty', > > 'message' => 'This field cannot be blank.', > > 'last' => true, > > ), > > 'lengthCheck' => array( > > 'rule' => '/^.{6,40}$/', > > 'message' => 'Minimum password 6 > > characters.', > > 'last' => true, > > ), > > ), > > > ** > > The registration validation is affected when hash password is enabled. > > It doesn't matter how the hash was enabled; using Auth component; or > > Md5, once hash is enabled, the password validation no longer can be > > triggered. So, I think something wrong with the above validation ? > > > The full validations for all fields are below: (Note: only the > > password validation is affected) > > > 'username' => array( > > 'notEmpty' => array( > > 'rule' => 'notEmpty', > > 'message' => 'This field cannot be blank.', > > 'last' => true, > > ), > > 'uniqueCheck' => array( > > 'rule' => 'isUnique', > > 'message' => 'That username has already been > > taken.', > > 'last' => true, > > ), > > 'lengthCheck' => array( > > 'rule' => '/^.{6,40}$/', > > 'message' => 'Minimum username 6 > > characters.', > > 'last' => true, > > ), > > ), > > > 'email' => array( > > 'notEmpty' => array( > > 'rule' => 'notEmpty', > > 'message' => 'This field cannot be blank.', > > 'last' => true, > > ), > > 'email' => array( > > 'rule' => 'email', > > 'message' => 'That is not a valid email address.', > > 'last' => true, > > ), > > ), > > > 'password' => array( > > 'notEmpty' => array( > > 'rule' => 'notEmpty', > > 'message' => 'This field cannot be blank.', > > 'last' => true, > > ), > > 'lengthCheck' => array( > > 'rule' => '/^.{6,40}$/', > > 'message' => 'Minimum password 6 > > characters.', > > 'last' => true, > > ), > > ), > > > ** > > Is there an alternative way to write these validations?; I have no > > clue why the password validation is nullified when hash password is > > enabled using any way. > > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others > > with their CakePHP related questions. > > > 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]<cake-php%[email protected]>For > > more options, visit this group at > >http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
