Capitalized letters in username silently gets converted to lowercase
See original GitHub issueDescribe the bug
While writing tests with Cypress, I found that in the /settings
page when you try to change your username with a capital letter, it silently get’s converted to lowercase. For example: if Quincy
was input, it get’s converted to quincy
.
To Reproduce Steps to reproduce the behavior:
- Go to ‘/setting’
- Click on the username change input and enter a username with capital letter
- Click
Save
- See the issue
Expected behavior
It should show an error message or warn the user that capital letters in name will get converted to lowercase.
Issue Analytics
- State:
- Created 3 years ago
- Comments:19 (18 by maintainers)
Top Results From Across the Web
Why we turn off autocaps and only write in lowercase online
Disabling autocaps on your phone and tweeting and texting only in lowercase is all the rage for people who need you to chill...
Read more >Capitalize My Title
Automatically capitalize & convert case of text to Title Case (in AP, APA, Chicago, MLA), sentence case, UPPERCASE, lowercase, and more.
Read more >Email ID automatically make the uppercase letter to lowercase ...
When I insert my email ID and press next, the capital letter in my ID automatically converted to lowercase letter. When I entered...
Read more >Enforcing lowercase usernames in Django - Stack Overflow
The problem with this is that when users sign up they may have a password manager that saves the uppercase or titlecase username...
Read more >Capital Letters and Abbreviations - University of Sussex
However, when brand names are converted into verbs, no capital letter is used: we write She was hoovering the carpet and I need...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Since we haven’t had any objections lets go with
Username (lowercase only)
.Sure. What I’m suggesting is that it’s forced to be lowercase by validation, so you can’t click submit until all the characters are lowercase.
To be on the safe side, I think we should validate in here
https://github.com/freeCodeCamp/freeCodeCamp/blob/a48ed627adaeed622a099b87d990d917b65a7561/api-server/common/models/user.js#L730
as well.