You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you think it is feasible to add an option to configure a custom username that is different from the email and still unique for each user?
I ask because the user can change their email, but in my use case the username could not be changed and it must be something more concise and shorter than an email.
Thanks.
The text was updated successfully, but these errors were encountered:
If it's of interest, I have made a fork with this feature (and some other changes), at first I didn't intend to create a pull request and the code isn't prepared for that (in fact it's a mess, sorry), but I think it demonstrates my idea in this specific feature.
I don't think any changes are necessary in the ID generation, the UserIdType.UserName option already exists.
What I thought is:
An option to set the UserName different from the user's email, in this case changing the email would not change the UserName along with it;
Enforce UserName-based uniqueness, just like email with the compare/exchange mechanism;
Finally, perhaps add an option to prevent the UserName from being changed, but maybe this responsibility should be left to app/dev.
Personally, I understand that this can generate too much complexity in the code base, especially in the Create(User)Asyn and Update(User)Asyn methods to ensure that the UserName is unique, but I also think it is a valid feature and use case .
Do you think it is feasible to add an option to configure a custom username that is different from the email and still unique for each user?
I ask because the user can change their email, but in my use case the username could not be changed and it must be something more concise and shorter than an email.
Thanks.
The text was updated successfully, but these errors were encountered: