The discussion revolves around the maximum username length in Discourse, with users questioning whether it’s safe to exceed the current limit of 20 characters, especially when integrating with LDAP systems that have longer usernames Philip_Colmer. While some users suggest increasing the limit to 30 or more for practicality, concerns are raised about potential UI issues and the risk of username confusion due to similar long names, particularly with trolling JonnyGamer, PartTimeFemale. One user notes that even if the setting is increased, the actual limit is enforced at 60 characters due to a hardcoded constraint in the username_validator.rb file Donavan_Martin. A workaround is suggested by modifying the validator file to allow up to 255 characters Donavan_Martin1.
Is it safe to make it more than 20 characters? The reason I ask is because we’ve tied our Discourse implementation to our LDAP system for SSO, and we’re using the LDAP usernames as the Discourse usernames … and some of our users have got very long names, e.g. moorthy.baskaravenkatraman-sambamoorthy.
What is the maximum length that the system has been tested with? I don’t want to break Discourse by putting in a value that is too high …
@JonnyGamer You make a good point about why Discourse might have a maximum length, although you only need to start typing someone’s name and Discourse offers matches. Looking at the linked post, I think that another reason was constraints on the layout but now that full names and usernames are displayed above the post, I hope that is less of an issue than it used to be.
Hopefully one of the devs will be able to chime in
That is very true
Except trolling people can then make multiple account very easily that are really similar to the long username.
(For exceptionally long usernames, they get truncated, so after a certain amount of letters, you can see after that. Then someone could make multiple accounts, change one character, and it all gets really confusing)
On the Hopscotch Forum, we are already getting that. Trollers are created account that are the same exact as other users, except the lowercase “L” is an uppercase “i”
I, and I am sure some other people, would think that it might be a tire to type out long usernames, even with shortcuts, if there are many similar long usernames, it could take awhile to type