question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Capitalized letters in username silently gets converted to lowercase

See original GitHub issue

Describe 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:

  1. Go to ‘/setting’
  2. Click on the username change input and enter a username with capital letter
  3. Click Save
  4. 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:closed
  • Created 3 years ago
  • Comments:19 (18 by maintainers)

github_iconTop GitHub Comments

2reactions
raisedadeadcommented, Oct 4, 2020

Since we haven’t had any objections lets go with Username (lowercase only).

1reaction
ojeytonwilliamscommented, Oct 5, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found