WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 10 months ago

#16833 new defect (bug)

Signup mechanism shortens usernames without warning

Reported by: hughcharlesparker Owned by:
Priority: normal Milestone: Future Release
Component: Users Version: 3.0
Severity: normal Keywords: ux-feedback has-patch
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 2 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 scribu2 years ago

  • Keywords ux-feedback added

solarissmoke2 years ago

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

comment:2 solarissmoke2 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 nacin2 years ago

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

comment:4 hughcharlesparker2 years ago

  • Type changed from enhancement to defect (bug)

comment:5 bpetty10 months ago

  • Component changed from General to Users

comment:6 bpetty10 months ago

Username values related: #5918, #17793

Note: See TracTickets for help on using tickets.