By default, Drupal 9 allows usernames to have spaces, periods(.), hyphens(-), apostrophes('), underscores(_) and @ symbols.
How would I disallow spaces, periods, apostrophes and @ symbols?
By default, Drupal 9 allows usernames to have spaces, periods(.), hyphens(-), apostrophes('), underscores(_) and @ symbols.
How would I disallow spaces, periods, apostrophes and @ symbols?
I used the Username Validation module suggested by Patrick Kenny in his comment. The Blacklist characters field shown by the module on /admin/config/people/user-name-validation did the trick.