WordPress.org

Make WordPress Core

Opened 5 years ago

Last modified 10 months ago

#16833 new defect (bug)

Signup mechanism shortens usernames without warning

Reported by: hughcharlesparker Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 3.0
Component: Users Keywords: ux-feedback has-patch dev-feedback
Focuses: Cc:

Description

When a user signs up for an account on a wordpress blog, if their chosen username is longer than the limit, wordpress chops of the end of the username, without warning the user, and without offering the user the opportunity to choose again.

Steps to reproduce: Go to a wordpress blog, sign up with a long username, and read the confirmation email. An example: forum.xbmc.org, which has a limit of 15 characters.

Attachments (1)

16833.diff (2.1 KB) - added by solarissmoke 5 years ago.
Insert maxlength attribute into user_login field to prevent long usernames being truncated silently

Download all attachments as: .zip

Change History (8)

#1 @scribu
5 years ago

  • Keywords ux-feedback added

@solarissmoke
5 years ago

Insert maxlength attribute into user_login field to prevent long usernames being truncated silently

#2 @solarissmoke
5 years ago

  • Keywords has-patch added

I think we're missing some maxlength attributes - these would prevent someone submitting a too-long username in the first place. Elsewhere (e.g., in show_user_form()) they are present.

Also the maxlength value for email was wrong - user_email accepts varchar(100).

#3 @nacin
5 years ago

  • Milestone changed from Awaiting Review to Future Release
  • Type changed from defect (bug) to enhancement
  • Version set to 3.0

#4 @hughcharlesparker
5 years ago

  • Type changed from enhancement to defect (bug)

#5 @bpetty
4 years ago

  • Component changed from General to Users

#6 @bpetty
4 years ago

Username values related: #5918, #17793

#7 @chriscct7
10 months ago

  • Keywords dev-feedback added
Note: See TracTickets for help on using tickets.