diff --git a/lam/lib/account.inc b/lam/lib/account.inc index 3e7ff4d42..be175857f 100644 --- a/lam/lib/account.inc +++ b/lam/lib/account.inc @@ -467,16 +467,16 @@ function getNumberOfCharacterClasses($password): int { return 0; } $classesCount = 0; - if (preg_match("/[a-z]/", $password)) { + if (preg_match('/[a-z]/', $password)) { $classesCount++; } - if (preg_match("/[A-Z]/", $password)) { + if (preg_match('/[A-Z]/', $password)) { $classesCount++; } - if (preg_match("/[0-9]/", $password)) { + if (preg_match('/[0-9]/', $password)) { $classesCount++; } - if (preg_match("/[^a-z0-9]/i", $password)) { + if (preg_match('/[^a-z0-9]/i', $password)) { $classesCount++; } return $classesCount;