Merge "Improve documentation for the MinimumPasswordLengthToLogin policy"
[lhc/web/wiklou.git] / includes / password / PasswordPolicyChecks.php
index c3af88f..1475c20 100644 (file)
@@ -54,6 +54,8 @@ class PasswordPolicyChecks {
 
        /**
         * Check password is longer than minimum, fatal.
+        * Intended for locking out users with passwords too short to trust, requiring them
+        * to recover their account by some other means.
         * @param int $policyVal minimal length
         * @param User $user
         * @param string $password
@@ -151,8 +153,6 @@ class PasswordPolicyChecks {
                global $wgPopularPasswordFile, $wgSitename;
                $status = Status::newGood();
                if ( $policyVal > 0 ) {
-                       wfDeprecated( __METHOD__, '1.33' );
-
                        $langEn = Language::factory( 'en' );
                        $passwordKey = $langEn->lc( trim( $password ) );