Consecutive spaces in username

Created on 12 January 2015, almost 11 years ago
Updated 12 July 2025, 4 months ago

Drupal doesn't consecutive spaces in usernames for example:

John Smith

Isn't valid.

Suppose we are using Automatic User Names to concat a first name and a last name field together, if the user adds an extra space at the end of the first name field, then Automatic User Names will create a username like the example above.

🐛 Bug report
Status

Fixed

Component

Code

Created by

🇬🇧United Kingdom __cj

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024