Manual:$wgMinimalPasswordLength

Details
Specifies the minimal length of a user password. Checked when a new password should be set. If set to 0, empty passwords are allowed.