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

Added a check for username length #618

Closed
wants to merge 3 commits into from

Conversation

KeiranScript
Copy link

During registration, there was previously no validation for the length of the username. I've added a constant in the /auth/register.tsx that dictates the maximum length of a given username, but it would probably be best to create a config option for it.

Copy link
Collaborator

@TacticalTechJay TacticalTechJay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change only applies to the front end, meaning anybody could bypass this limit by using the api endpoint.

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

Successfully merging this pull request may close these issues.

2 participants