AlfiyaSiddique / TastyTrails

TastyTrails is a web application designed to explore delightful recipes from around the world. It leverages modern technologies to create an immersive culinary experience.
https://delightful-daifuku-a9f6ea.netlify.app/
11 stars 37 forks source link

BUG: Username Uniqueness Issue #146

Open MohammedMusharraf11 opened 1 day ago

MohammedMusharraf11 commented 1 day ago

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

github-actions[bot] commented 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!

AlfiyaSiddique commented 22 hours ago

@MohammedMusharraf11 go ahead and fix this bug

mohdazam0786 commented 22 hours ago

i want to work on this task please assign it to me @AlfiyaSiddique

AlfiyaSiddique commented 22 hours ago

@mohdazam0786 this task is already taken

mohdazam0786 commented 20 hours ago

I want to do my first contribution in open source journey that's why I asked you @AlfiyaSiddique

AlfiyaSiddique commented 20 hours ago

yes, you are free to open new valid issues for yourself

MohammedMusharraf11 commented 13 hours ago

@MohammedMusharraf11 go ahead and fix this bug

I have created a PR Please review and merge it @AlfiyaSiddique