Manual:$wgMinimalPasswordLength

Details
Specifies the minimal length of a user password. If set to 999, empty passwords are allowed.