Skip to content

Commit

Permalink
Do actual lowercase testing...
Browse files Browse the repository at this point in the history
  • Loading branch information
HLeithner committed Mar 18, 2019
1 parent 5523a23 commit df83f75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/src/Form/Rule/PasswordRule.php
Expand Up @@ -160,7 +160,7 @@ public function test(\SimpleXMLElement $element, $value, $group = null, Registry
// Minimum number of lower case ASCII characters required
if (!empty($minimumLowercase))
{
$nLowercase = preg_match_all('/[A-Z]/', $value, $umatch);
$nLowercase = preg_match_all('/[a-z]/', $value, $umatch);

if ($nLowercase < $minimumLowercase)
{
Expand Down

0 comments on commit df83f75

Please sign in to comment.