Update register.js to allow shorter and longer usernames.#191
Conversation
Allow for two character and 16 character usernames. These are common in some video games and are probably needed by many site administrators.
|
Perhaps make it configurable by an administrator to an extent? This would serve to make all parties happy in case someone had a problem with 2 letter usernames or they wanted to allow longer usernames. Of course, I would limit this to an extent, something like 2-5 for the lower bound and 12-30 for upper bound? Just an idea, but it does cost extra time adding in another configuration option. |
|
Meta configurations (i.e. those made in the admin panel) can be set on I believe @barisusakli did some work allowing the meta config to be exposed
|
|
Try adding "minimum username length" and "maximum username length" to the admin panel under the "settings" tab template. Ensure Then replace the numbers in the conditional with |
|
87f48e2 added 4 meta configs for user name min/max length and password min/max length. |
Proposal:
Allow for 2 character and 16 character usernames.
Reason:
Shorter usernames are popular in many games that we see on the market today. Coupled with the fact that many other websites also allow them. Changing these values will allow for NodeBB to be unique in which usernames it accepts, as many website administrators turn to custom based solutions since other softwares (phpBB, vBulletin, IPBoad, XenForo) only support 3-16 character usernames.
I personally have 2 letter usernames I use. Would love to be able to sign them up :P