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

[Fix] use consistent auth http error status code #2328

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

zzzming
Copy link
Collaborator

@zzzming zzzming commented Jun 25, 2024

This PR uses consistent http error status code in the auth service. If the user is not an active user, the status code should be 401/unauthorized, currently there are both 400 and 401 in the auth.

Also change the code to http status macro to be consistent with the rest of the auth file.

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. bug Something isn't working labels Jun 25, 2024
Copy link
Contributor

@ogabrielluiz ogabrielluiz left a comment

Choose a reason for hiding this comment

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

LGTM

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jun 25, 2024
@zzzming zzzming added this pull request to the merge queue Jun 25, 2024
Merged via the queue into dev with commit 9fce6ae Jun 25, 2024
23 of 30 checks passed
@zzzming zzzming deleted the fix/auth-http-status-code branch June 25, 2024 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants