Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 485 Bytes

ValidPassword.md

File metadata and controls

18 lines (13 loc) · 485 Bytes

ValidPassword

When you add this constraint, you can restrict a field depending on an SS Validator

Usage


    $validator = ZenValidator::create();
    $validator->setConstraint(
      $field, 
      new \Milkyway\SS\ZenForms\Constraints\ValidPassword($passwordValidator, $strengthScaleFactor = 0.4)
    );

Complexify

If you use the Complexify Jquery Plugin, this constraint automatically plugs into it.