Just reporting a minor doc issue in the Home › Administer › User management > Users > Add User page. The help string associated to the "Username:" field is "Your full name or your preferred username: only letters, numbers and spaces are allowed". However, it seems that a period ('.') is allowed as well. Very minor, but some people like to separate their first name from their last name using a period.
Thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | user_validation.patch | 4.61 KB | ChrisKennedy |
Comments
Comment #1
webchickString freeze issue.
Comment #2
ChrisKennedy commentedPeriods, dashes, and underscores are all allowed actually.
In researching username validation I also discovered that the maxlength is incorrectly set to 56 when the database length is 60. This patch fixes the error by abstracting the length to a constant USER_MAX_LENGTH, which will make it easy to increase in the future and reduces the need for translation changes. I did the same for the email address.
There does not seem to be a reason for setting the username max at 56 rather than 60. The original commit that increases the maxlength from 32 to 56 is here: http://cvs.drupal.org/viewcvs/drupal/drupal/modules/user.module?r1=1.26&...
Comment #3
ChrisKennedy commentedI also did a grep on modules/* and includes/* but didn't find any other references to the 56 character limit.
Comment #4
ChrisKennedy commentedDuplicate of http://drupal.org/node/45453 - moving over there.