I needed to implement password policy for ordinary users having passwords of minimum six characters of length.
In LocalSettings.php: $wgPasswordPolicy['policies']['default']['MinimalPasswordLength'] = 6;
worked.
If it is incorrect use someone more knowledgeable may correct it.