Merge "Convert Special:DeletedContributions to use OOUI."
[lhc/web/wiklou.git] / includes / password / MWSaltedPassword.php
index 26730b1..733984c 100644 (file)
@@ -42,5 +42,9 @@ class MWSaltedPassword extends ParameterizedPassword {
                }
 
                $this->hash = md5( $this->args[0] . '-' . md5( $plaintext ) );
+
+               if ( !is_string( $this->hash ) || strlen( $this->hash ) < 32 ) {
+                       throw new PasswordError( 'Error when hashing password.' );
+               }
        }
 }