Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating user with certain usernames breaks the application #3

Open
govindpuff opened this issue Mar 23, 2023 · 1 comment
Open

Creating user with certain usernames breaks the application #3

govindpuff opened this issue Mar 23, 2023 · 1 comment

Comments

@govindpuff
Copy link

Describe the bug
If I create a user with username = users, the /users page breaks.

To Reproduce

  1. Create a new account with username = users
  2. Log in with that account
  3. Navigate to the /users page
  4. You will encounter an error page.

Expected behavior
The user should not be allowed to create a user with username = user, or the page routing should be nested one layer further, like /users/[username]. Using the same level for both dynamic and static routes is risky as shown above.

Screenshots
image
image

Environment (please complete the following information):

  • Development or production app environment
  • Browser [e.g. chrome v60.12.0, safari 10.1]
  • OS: [e.g. iOS, Windows x64] (if applicable)
  • node version (if applicable)

Additional context
Add any other context about the problem here.

@nemanjam
Copy link
Owner

nemanjam commented Mar 24, 2023

Thank you for this, I will have a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants