Closed (duplicate)
Project:
Drupal core
Version:
5.0-beta2
Component:
user.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Dec 2006 at 05:15 UTC
Updated:
7 Dec 2006 at 22:45 UTC
Jump to comment: Most recent file
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.