CSteipp has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/258387

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(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/87/258387/1

diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index 1bab1c5..1d02542 100644
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -331,14 +331,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;
@@ -1258,6 +1252,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' => 25,
+       );
 }
 
 // Config for GlobalCssJs

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ief95dd1e40c0fd5b9631bd854a17f30a17f0684b
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: CSteipp <[email protected]>

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

Reply via email to