How to properly change username ?
I wrote a plugin to login my users from another app to my NodeBB forum.
In my app, my users are allowed to change their usernames so I overwrite user's field by using this :
User.setUserField(uid, 'username', username); User.setUserField(uid, 'userslug', utils.slugify(username));
It's working, but when the user go to his profile, there is an error.
The profile can be found by changing the username (userslug) in the URL by the old one.
How could I make this work entirely ?
Another question : where could I found the list of allowed characters in NodeBB's username ? It seems that "(" is not allowed for example.