LSformRule :: password : Added minValidRegex parameter and use preg_match() function...
[ldapsaisie.git] / public_html / conf / LSobjects / config.LSobjects.LSpeople.php
index 96ce030..0bd81f1 100644 (file)
@@ -513,7 +513,14 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
           'msg' => 'Your password must contain from 8 to 10 characters.',
           'params' => array(
             'minLength' => 8,
-            'maxLength' => 10
+            'maxLength' => 10,
+            'regex' => array (
+              '/[A-Z]/',
+              '/[a-z]/',
+              '/[0-9]/',
+              '/[^A-Za-z0-9]/',
+            ),
+            'minValidRegex' => 3
           )
         )
       ),