Open MohammedMusharraf11 opened 1 day ago
👋 Thank you @MohammedMusharraf11 for raising an issue! We appreciate your effort in helping us improve. Our team will review it shortly. Stay tuned!
@MohammedMusharraf11 go ahead and fix this bug
i want to work on this task please assign it to me @AlfiyaSiddique
@mohdazam0786 this task is already taken
I want to do my first contribution in open source journey that's why I asked you @AlfiyaSiddique
yes, you are free to open new valid issues for yourself
@MohammedMusharraf11 go ahead and fix this bug
I have created a PR Please review and merge it @AlfiyaSiddique
Is there an existing issue raised for this?
Describe your issue
When creating an account on the website, the username uniqueness validation can be bypassed by adding an extra space at the end of the username. This allows users to register multiple accounts with the same username but with an additional space.
Steps to reproduce
What was the expected result?
The system should treat usernames as case-insensitive and should also strip leading/trailing spaces when validating uniqueness.
Proposed solution
Trim Whitespaces on Username Input: Ensure that any leading or trailing whitespaces are removed from the username input before performing the uniqueness validation and before saving it to the database. We can use this ->
String.prototype.trim()
Would you like to work on this issue?
Yes
Terms & Conditions