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

Feature Request: Unspecific Registration Errors #177

Open
TheTedder opened this issue Aug 11, 2023 · 0 comments
Open

Feature Request: Unspecific Registration Errors #177

TheTedder opened this issue Aug 11, 2023 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@TheTedder
Copy link
Contributor

TheTedder commented Aug 11, 2023

Currently, the account registration endpoint returns a 409 conflict code if the email or username is already taken. This is a security vulnerabililty because it can be used to guess users' email addresses. Instead, the enpoint should return a 409 status code if the username specified is not available but not if the email specified is already used. If the username is not taken, A status code such as 202 accepted should be returned to indicate that the operation is in progress but may fail if the email has already be used. If the email is in fact already in use, an email should be sent to it that explains that someone just tried to register an account with it. If the email is not in use, an account confirmation record should be generated and a link to confirm the account should be sent to the email.

Affected Functionality

The registration endpoint will have to be changed to match the functionality described above. Because this is a breaking API change, the frontend will need to be notified.

Other Relevant Issues

#176

@TheTedder TheTedder added the enhancement New feature or request label Aug 11, 2023
@TheTedder TheTedder added this to the MVP milestone Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant