There was some discussion on Sueetie Forums about the current regex rules user passwords had to conform to. That requirement was 4 or more letters plus 1 or more numbers and special characters. No spaces. That worked okay, but the letters had to come first. PASSWORD!99 was acceptable but !99PASSWORD was not. Administrators wanted their users to have the flexibility of entering letters and non-letter characters in any order, and they’re right.
The new password regex rule requires the password to contain a minimum of 6 letters and numbers in any order. Special characters are permitted. No spaces. The password cannot be longer than 18 characters. Both of the PASSWORD variants above now are accepted.
An interesting aspect of password validation was the terminology used to clarify the existing rules. In the previous “4 letters + 1 or more numbers/special character” rule, the message displayed was:
Password must contain at least 6 characters plus at least one number or special character. No spaces.
That statement implied that the password could contain any character and number arrangement. Explicitly stating that the letters had to be entered first would have eliminated any confusion.
The not-valid message for the new “6 letters and numbers” requirement is:
Password must contain 6 to 18 characters of both letters and numbers. No spaces. Special characters okay. Ex: !1something
Hope that will do the trick.
While I was Regexing on a Saturday Night (it’s okay, I was listening to the Godfather Soundtrack at the time) I changed the rules on the Sueetie Display Name as well. Before there essentially wasn’t one. The new Display Name requirement is 2 or more letters, no numbers, spaces okay. I don’t think display names should contain numbers. Sorry. While no special characters are accepted, after looking through the hundreds of Sueetie User Display Names I added support for “.”, “-“ and “’”. Examples “Bob J. Jones,” “Cid El-Rah,” and “Tim O’Brien.” Gotta support the Irish, after all.
Thinking in terms of Version 3.1 completeness, I applied the rules not only to the Sueetie Registration form, but to the YAF-based User Profile form and the original Sueetie User Profile form for community sites that don’t have a forum. I didn’t update Sueetie Administration Membership, figuring if Sueetie Admins want to break the rules, they can break ‘em.
I hope everyone in Sueetietown can live with the New Rules. If not, you can petition the Mayor like you did before.