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

Duplicate usernames can be created when signing up #110

Open
lsun0547 opened this issue Jan 7, 2024 · 0 comments
Open

Duplicate usernames can be created when signing up #110

lsun0547 opened this issue Jan 7, 2024 · 0 comments
Assignees
Labels
bug Something isn't working DB Database related tasks

Comments

@lsun0547
Copy link
Collaborator

lsun0547 commented Jan 7, 2024

When signing up for a new account, it is possible to make an account with a username that already exists in the table for the other type of account.
ex: If there is a student account with the username "hello" it is possible for a user to sign up for a parent account with the same username.

My suggestion is to merge the student table into the user table and add another column that tells the account type. Then the SQL queries for the student and user tables should be changed to match with the new user table.

@lsun0547 lsun0547 added bug Something isn't working DB Database related tasks labels Jan 7, 2024
@lsun0547 lsun0547 changed the title Sign up page duplicate username doesn't always get caught Duplicate usernames can be created when signing up Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working DB Database related tasks
Projects
None yet
Development

No branches or pull requests

1 participant