MDN disallows user names with spaces, even for existing users


User management
3 years ago
2 years ago


(Reporter: robwu, Unassigned)




(Whiteboard: [specification][type:bug])



3 years ago
What did you do?
1. I have a MDN account with a username that contains a space
2. I visited my profile page to edit it: (the actual link uses Rob%20W).
3. I changed some fields and clicked on "Save changes"

What happened?
Error: "Username may contain only letters, numbers, and these characters: . - _ +"

What should have happened?
The form should have allowed me to change my profile without my username (which I've had since 2011/2012).

OR MDN should treat spaces as underscores and vice versa.

Is there anything else we should know?
Luke, is there a decision whether or not we allow spaces in usernames?
Severity: normal → minor
Component: General → User management
Flags: needinfo?(lcrouch)
Keywords: in-triage
302 :jezdez
Flags: needinfo?(lcrouch) → needinfo?(jezdez)
Yeah, when we refactored the auth system to add GitHub we had to decide for a good pattern and chose the one that is both supported by Django and the library we use for 3rd party auth services django-allauth. It doesn't contain whitespaces. The OP probably still had an account from before that refactor and the login kept working since the Persona account was attached to the email address and not the username (which is a MDN specific addition).
Flags: needinfo?(jezdez)
You need to log in before you can comment on or make changes to this bug.