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.

CommentFileSizeAuthor
#2 user_validation.patch4.61 KBChrisKennedy

Comments

webchick’s picture

Title: Minor doc issue in the "add user" admin page » String freeze: Minor doc issue in the "add user" admin page

String freeze issue.

ChrisKennedy’s picture

Title: String freeze: Minor doc issue in the "add user" admin page » String freeze: improve username and email length validation and description
Priority: Minor » Normal
Status: Active » Needs review
StatusFileSize
new4.61 KB

Periods, 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&...

ChrisKennedy’s picture

I also did a grep on modules/* and includes/* but didn't find any other references to the 56 character limit.

ChrisKennedy’s picture

Status: Needs review » Closed (duplicate)

Duplicate of http://drupal.org/node/45453 - moving over there.