Manual:$wgMinimalPasswordLength

Details
Specifies the minimal length of a user password. If you change this value, users with a password shorter than your new $wgMinimalPasswordLength, have to change their password the next time they log in. If set to 0, empty passwords are allowed.