diff options
author | Amir Sarabadani <ladsgroup@gmail.com> | 2024-02-01 16:29:05 +0100 |
---|---|---|
committer | Amir Sarabadani <ladsgroup@gmail.com> | 2024-02-01 16:29:05 +0100 |
commit | 2d66025fdf051e775d4c15fe625235d85341afb5 (patch) | |
tree | 4c122e557ff773573c612cc4df8167049e0fcfe7 /includes/auth/TemporaryPasswordAuthenticationRequest.php | |
parent | 0b52e864b0d9236233ffa5f5ec908e172dbb5106 (diff) | |
download | mediawikicore-2d66025fdf051e775d4c15fe625235d85341afb5.tar.gz mediawikicore-2d66025fdf051e775d4c15fe625235d85341afb5.zip |
Drop deprecated configs $wgMinimalPasswordLength and $wgMaximalPasswordLength
Soft-deprecated since 1.26 and hard-deprecated since at least
I9776d11d4e2d184 (1.39).
Not set in production.
Change-Id: I55e4569c5a40f77a719bc7ab1924eaa706e0da53
Diffstat (limited to 'includes/auth/TemporaryPasswordAuthenticationRequest.php')
-rw-r--r-- | includes/auth/TemporaryPasswordAuthenticationRequest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/auth/TemporaryPasswordAuthenticationRequest.php b/includes/auth/TemporaryPasswordAuthenticationRequest.php index dccae66fef76..58e4480ce232 100644 --- a/includes/auth/TemporaryPasswordAuthenticationRequest.php +++ b/includes/auth/TemporaryPasswordAuthenticationRequest.php @@ -75,7 +75,7 @@ class TemporaryPasswordAuthenticationRequest extends AuthenticationRequest { $config = MediaWikiServices::getInstance()->getMainConfig(); // get the min password length - $minLength = $config->get( MainConfigNames::MinimalPasswordLength ); + $minLength = 0; $policy = $config->get( MainConfigNames::PasswordPolicy ); foreach ( $policy['policies'] as $p ) { foreach ( [ 'MinimalPasswordLength', 'MinimumPasswordLengthToLogin' ] as $check ) { |