diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2015-04-01 06:11:44 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2015-04-01 06:11:44 +0200 |
commit | 14f74d141ab5580688bfd46d2f74c026e43ed967 (patch) | |
tree | 081b7cbfc4d246ecc42831978d080331267cf57c /includes/specials/SpecialUserlogin.php | |
parent | 4a953b6bfda28604979feb9cfbb58974d13b84bb (diff) |
Update to MediaWiki 1.24.2
Diffstat (limited to 'includes/specials/SpecialUserlogin.php')
-rw-r--r-- | includes/specials/SpecialUserlogin.php | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/includes/specials/SpecialUserlogin.php b/includes/specials/SpecialUserlogin.php index 6de7c90d..24b636b1 100644 --- a/includes/specials/SpecialUserlogin.php +++ b/includes/specials/SpecialUserlogin.php @@ -538,14 +538,11 @@ class LoginForm extends SpecialPage { return Status::newFatal( 'badretype' ); } - # check for minimal password length - $valid = $u->getPasswordValidity( $this->mPassword ); - if ( $valid !== true ) { - if ( !is_array( $valid ) ) { - $valid = array( $valid, $wgMinimalPasswordLength ); - } - - return call_user_func_array( 'Status::newFatal', $valid ); + # check for password validity, return a fatal Status if invalid + $validity = $u->checkPasswordValidity( $this->mPassword ); + if ( !$validity->isGood() ) { + $validity->ok = false; // make sure this Status is fatal + return $validity; } } |