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 taken usernames (front end) #29

Closed
crchong1 opened this issue Sep 16, 2020 · 0 comments · Fixed by #33
Closed

Validate taken usernames (front end) #29

crchong1 opened this issue Sep 16, 2020 · 0 comments · Fixed by #33
Assignees
Labels
good first issue Good for newcomers

Comments

@crchong1
Copy link
Contributor

We recently switched our sign up flow, and right now, we don't have a proper check to see if usernames have been already taken. If you go to CompleteSignupFlow.tsx, you will see where we render all of the signup pages:
image

If you go to AccountSetup.tsx, you will need to add additional functionality to check if a username exists.
image
This is the function that checks if the username is invalid. Right now, we only check for forbidden characters and blank fields. However, we need to write a fetch call to the server. It will look like similar to this:
image

You basically need to send to the server the username field, which will return a boolean response.

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

Successfully merging a pull request may close this issue.

2 participants