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

Add simple check to see if username is registered #4

Open
Nautman opened this issue Nov 14, 2020 · 4 comments
Open

Add simple check to see if username is registered #4

Nautman opened this issue Nov 14, 2020 · 4 comments

Comments

@Nautman
Copy link
Member

Nautman commented Nov 14, 2020

I know it's possible to use get("/user"), but I don't need to get back all information on their profile just to see if the username is available.

@kelszo
Copy link
Member

kelszo commented Nov 15, 2020

Should this be done by sending specific error codes on registration or another route for checking username?

@Nautman
Copy link
Member Author

Nautman commented Nov 15, 2020

Another route. The route doesn't need to send error codes. To be clear, this change isn't even necessary as the previous way works. But you could argue it's better.

@kelszo
Copy link
Member

kelszo commented Nov 15, 2020

Will add this if needed in the future. One could add just a query parameter like ?fields=none that only returns true/false.

@Nautman
Copy link
Member Author

Nautman commented Nov 15, 2020

That'd work perfectly.

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

No branches or pull requests

2 participants