Username restrictions (Characters)
-
Is there any documentation for restrictions on the characters that can be used in nodebb? I have an SSO with discord and ran into some username issues with nodebb. Is there any documentation about to look into this? Or anyone have any helpful information?
For reference the name is acsii chars i think. ʕ·ᴥ·ʔ like ●ᴥ●
I assume I got a few methods for fixing this, mainly stripping the name of those random chars and just displaying text or assigning some randomization as username that they can change later.
-
This is the function limiting usernames https://github.com/NodeBB/NodeBB/blob/master/public/src/utils.js#L394, there has been some talk about allowing any username here https://github.com/NodeBB/NodeBB/issues/5362
-
@baris said in Username restrictions (Characters):
This is the function limiting usernames https://github.com/NodeBB/NodeBB/blob/master/public/src/utils.js#L394, there has been some talk about allowing any username here https://github.com/NodeBB/NodeBB/issues/5362
Thank you! Just decided to rewrite the Discord username, replace unicode with normal characters. Simplest usually the best. Then the user can change their name if they wish.
-
@baris said in Username restrictions (Characters):
This is the function limiting usernames https://github.com/NodeBB/NodeBB/blob/master/public/src/utils.js#L394
Would anyone happen to know where this function got moved to in the intervening years?
Edit: I think I found it, here: https://github.com/NodeBB/NodeBB/blob/master/public/src/utils.common.js#L330