Hi,
I yesterday installed a local copy of mediawiki and have the same problem as @Vicarage. I have set the the dump as recommended by @Bawolff. Result is:
array(2) { ["policies"]=> array(5) { ["bureaucrat"]=> array(2) { ["MinimalPasswordLength"]=> int(6) ["MinimumPasswordLengthToLogin"]=> int(1) } ["sysop"]=> array(2) { ["MinimalPasswordLength"]=> int(6) ["MinimumPasswordLengthToLogin"]=> int(1) } ["interface-admin"]=> array(2) { ["MinimalPasswordLength"]=> int(10) ["MinimumPasswordLengthToLogin"]=> int(1) } ["bot"]=> array(2) { ["MinimalPasswordLength"]=> int(10) ["MinimumPasswordLengthToLogin"]=> int(1) } ["default"]=> array(5) { ["MinimalPasswordLength"]=> int(6) ["PasswordCannotBeSubstringInUsername"]=> array(2) { ["value"]=> bool(true) ["suggestChangeOnLogin"]=> bool(true) } ["PasswordCannotMatchDefaults"]=> array(2) { ["value"]=> bool(true) ["suggestChangeOnLogin"]=> bool(true) } ["MaximalPasswordLength"]=> array(2) { ["value"]=> int(4096) ["suggestChangeOnLogin"]=> bool(true) } ["PasswordNotInCommonList"]=> array(2) { ["value"]=> bool(true) ["suggestChangeOnLogin"]=> bool(true) } } } ["checks"]=> array(6) { ["MinimalPasswordLength"]=> string(48) "PasswordPolicyChecks::checkMinimalPasswordLength" ["MinimumPasswordLengthToLogin"]=> string(55) "PasswordPolicyChecks::checkMinimumPasswordLengthToLogin" ["PasswordCannotBeSubstringInUsername"]=> string(62) "PasswordPolicyChecks::checkPasswordCannotBeSubstringInUsername" ["PasswordCannotMatchDefaults"]=> string(54) "PasswordPolicyChecks::checkPasswordCannotMatchDefaults" ["MaximalPasswordLength"]=> string(48) "PasswordPolicyChecks::checkMaximalPasswordLength" ["PasswordNotInCommonList"]=> string(50) "PasswordPolicyChecks::checkPasswordNotInCommonList" } }
From my perspective it shows the param is set and accepted.
But still, when trying to change the password for a user (the only user created as admin during setup), i get the message the minimum password length is 10.
$wgPasswordPolicy['policies']['default']['MinimalPasswordLength'] = 6;
$wgPasswordPolicy['policies']['bureaucrat']['MinimalPasswordLength'] = 6;
$wgPasswordPolicy['policies']['sysop']['MinimalPasswordLength'] = 6;
Any idea why this happens?
Regards
Kallewirsch
Upate:
when writing the reply I reconcnized the user created during setup might be of role "interface-admin" (makes sense). I added this to the params and now it works for the user where I tested it.