A discussion about reserved usernames in Discourse. DrBB encountered an issue where a user registered with a reserved username by adding a number to the end. awesomerobot replied that the system supports wildcard entries, and reservedusername* can be used to prevent such registrations.
RGJ suggested using Levenshtein distance instead of wildcards, but DrBB and awesomerobot think it might be too much effort. They also discussed the possibility of using regex tests in the Discourse admin, but awesomerobot questioned whether the problem is common enough to prioritize this enhancement.
RJG wondered why support wildcards at all if motivated people can find ways around them, and Stephen suggested blocking reserved and username separately to address the issue. Ultimately, DrBB agreed that a simple solution is sufficient since they only found one instance of this issue.
We had someone register with a reserved username, getting around the restriction by the simple expedient of adding “1” to the end. I can’t tell if the system will accept a wildcard entry to prevent this, i.e., by declaring
reservedusername*
in the list. I’m a little hesitant to use the “just try it and see” method. Can anyone enlighten me?
Yow, that would probably be a lot more bulletproof, but I’m not sure it’s worth that degree of effort. Out of curiosity, would you use a reg ex test of some kind? Can you do that in the Discourse admin?
This might be more effort than it’s worth… It would catch reserved_username1 but it probably wouldn’t catch official_reserved_username, right? this is the type of thing that a motivated person would always find a way around.
We have a regex setting for blocked/censored words, and that seems like a reasonable way to enhance reserved usernames (which only has the wildcard)… but does this problem come up often enough to justify prioritizing that? I don’t think it’s a complaint we’ve had often.