In 2.5 it appears that the minimum length of the username field is 4 characters and that this is set early in the installation process and base64_encoded(serialized) into a site_member_preferences field together with other site preferences. I didn’t notice during the install process whether there was an option to change this (and don’t want to run another install right now just to find out). I can find nothing on the CP settings for members that gives me an option to change it.
Starting from scratch I would be happy to require a minimum username length of 4, but I’m not. I have 1700 usernames to convert and some of them are < 4 characters.
So, question 1, is there any way to change this one you have run an install?
Second, while the xml member import is a great tool, if your xml file has any errors it just dies. I created an xml file from my old database (another CMS) and had some empty <member></member> pairs where the length of the old username was < 4. I can correct this either by padding the usernames or omitting the <member></member> pairs in those cases (which would mean of course those usernames don’t get converted). However, I’d like to suggest that, at a mimimum, you add some instructions that users should run their xml files through the w3c validator ... that will tell you what line numbers you have errors on and help diagnose the problems. That’s if you can’t put some diagnostics into your own xml parser. I’m assuming of course that the xml parser will pick up the preference if the username minimum length is changed on installation.
Thanks