When users sign up on the forum using OpenID, their email and username get automatically filled and validated. If the chosen username is taken, Discourse adds a number to make it unique. The username is chosen based on the user name.
The issue is that we want the username to be only the user’s first name, not the full name. I’ve been trying to change the username during registration, but I haven’t found a successful way yet. Any suggestions on how to fix this would be appreciated.
If you control the openID server then you should be able to have it send whatever you want to Discourse.
This might help:
Looks like you can populate preferred_nickname with the username you think you want. What are you sending in that field? If it’s empty or their full name, that would be a good first thing to change.