jenkins-bot has submitted this change and it was merged.

Change subject: Set initial Staff password policy
......................................................................


Set initial Staff password policy

Increase minimum length to 8-bytes (for really, real this time).

Followup from Ie906bb646f8b8675e994432996b569f05ceff0be.

Bug: T104370
Change-Id: Ief95dd1e40c0fd5b9631bd854a17f30a17f0684b
---
M wmf-config/CommonSettings.php
1 file changed, 11 insertions(+), 8 deletions(-)

Approvals:
  Reedy: Looks good to me, but someone else must approve
  Catrope: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index 1a1ef41..8d466a8 100644
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -344,14 +344,8 @@
 unset( $wgPasswordPolicy['policies']['bureaucrat']['PasswordCannotBePopular'] 
);
 unset( $wgPasswordPolicy['policies']['sysop']['PasswordCannotBePopular'] );
 
-// Require 8-byte password for staff. Set MinimumPasswordLengthToLogin
-// to 8 also, once staff have time to update.
-$wgCentralAuthGlobalPasswordPolicies['staff'] = array(
-       'MinimalPasswordLength' => 8,
-       'MinimumPasswordLengthToLogin' => 1,
-       'PasswordCannotMatchUsername' => true,
-       'PasswordCannotBePopular' => 25,
-);
+// For global policies, see $wgCentralAuthGlobalPasswordPolicies below
+
 
 if ( PHP_SAPI === 'cli' ) {
        $wgShowExceptionDetails = true;
@@ -1269,6 +1263,15 @@
        if ( $wmfRealm === 'production' ) {
                $wgCentralAuthAutoCreateWikis[] = 'mediawikiwiki';
        }
+
+       // Require 8-byte password for staff. Set MinimumPasswordLengthToLogin
+       // to 8 also, once staff have time to update.
+       $wgCentralAuthGlobalPasswordPolicies['staff'] = array(
+               'MinimalPasswordLength' => 8,
+               'MinimumPasswordLengthToLogin' => 1,
+               'PasswordCannotMatchUsername' => true,
+               'PasswordCannotBePopular' => PHP_INT_MAX,
+       );
 }
 
 // Config for GlobalCssJs

-- 
To view, visit https://gerrit.wikimedia.org/r/258387
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ief95dd1e40c0fd5b9631bd854a17f30a17f0684b
Gerrit-PatchSet: 3
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: CSteipp <[email protected]>
Gerrit-Reviewer: Brian Wolff <[email protected]>
Gerrit-Reviewer: CSteipp <[email protected]>
Gerrit-Reviewer: Catrope <[email protected]>
Gerrit-Reviewer: Chad <[email protected]>
Gerrit-Reviewer: Florianschmidtwelzow <[email protected]>
Gerrit-Reviewer: Reedy <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to