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

Validate/restrict user names #170

Closed
alopezlago opened this issue May 19, 2023 · 0 comments
Closed

Validate/restrict user names #170

alopezlago opened this issue May 19, 2023 · 0 comments
Labels
bug Something isn't working enhancement New feature or request wontfix This will not be worked on

Comments

@alopezlago
Copy link
Collaborator

router.post('/signup', async (req, res) => {

There doesn't seem to be any validation done for newly created usernames. This can lead to a few problems:

  • Names with spaces or other unusual characters that can cause breaks elsewhere
  • Names with slurs

Consider restricting usernames to be alphanumeric (and maybe _) and, if possible, using a denylist to block inappropriate names.

@geoffrey-wu geoffrey-wu added bug Something isn't working enhancement New feature or request wontfix This will not be worked on labels Jun 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants