Autogenerated Username Field: Cannot Save Usernames with Capital Letters #7324
Replies: 2 comments 1 reply
-
Hey @tobiasiv — right now, we have no plans to support case-sensitive usernames, but can I ask what your reasoning is for wanting this? We might be able to be convinced that allowing case-sensitivity via a certain opt-in auth property like Let me know your thoughts! You could also add another field to the auth collection such as |
Beta Was this translation helpful? Give feedback.
-
Hey @JarrodMFlesch - Thank you for your response. I think case-sensitive usernames would be helpful because if a user saves their username with capital letters, there is currently no way to display the username exactly as the user saved it. This can be important for maintaining user identity and preference. While adding a displayName field to the auth collection is a potential workaround, it would be simpler and more intuitive for users if their usernames were preserved with the original capitalization. This could improve user experience by allowing them to see their usernames exactly as they entered them. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Link to reproduction
No response
Payload Version
3.0.0-beta.67
Node Version
20.9.0
Next.js Version
15.0.0-canary.58
Describe the Bug
When enabling login by username , a new autogenerated username field is created. However, this field does not support storing usernames with capital letters. I suggest saving the username in its original case while comparing it in lowercase during login. This way, the username can be case-insensitive while preserving the original format.
Reproduction Steps
Adapters and Plugins
No response
Beta Was this translation helpful? Give feedback.
All reactions