Drupal allows spaces in usernames, is there an easy way to stop this?
Also, where is the documentation on the username specs? What are the min/max lengths and which characters are allowed?
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.Sign up to join this community
A quick alternative is using Access rules, in drupal 6 you'll find them at yoursite.com/admin/user/rules for Drupal 7 I believe it was spun of to contrib as User restrictions
All you need to do to disallow spaces in usernames is create a rule like this: