WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 3 years 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
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 4 years ago.
Insert maxlength attribute into user_login field to prevent long usernames being truncated silently

Download all attachments as: .zip

Change History (7)

comment:1 @scribu4 years ago

  • Keywords ux-feedback added

@solarissmoke4 years ago

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

comment:2 @solarissmoke4 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).

comment:3 @nacin4 years ago

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

comment:4 @hughcharlesparker4 years ago

  • Type changed from enhancement to defect (bug)

comment:5 @bpetty3 years ago

  • Component changed from General to Users

comment:6 @bpetty3 years ago

Username values related: #5918, #17793

Note: See TracTickets for help on using tickets.