We have a database of users to be migrated into Discourse. All these users have only emails and random usernames.
After a migration, I noticed that most of the users got user.name fields, which are real full names.
First of all, I thought that Discours tries to generate a name from an email. But then I found some users with Chinese characters, and they emails and usernames are not even similar to the generated full name.
Again, we don’t have a full name, Discourse generates it itself and I don’t understand how. We only have an email and a username, which is random.
The question is, how does discourse generate a user.name? Thanks.
And, if the original username was changed during the import (e.g. because it contained Chinese characters, which aren’t allowed in usernames) then it will set the name to the original username.