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

Changing HTTP code when auth failed #155

Closed
Krucksy opened this issue Apr 20, 2024 · 0 comments · Fixed by #162
Closed

Changing HTTP code when auth failed #155

Krucksy opened this issue Apr 20, 2024 · 0 comments · Fixed by #162
Assignees

Comments

@Krucksy
Copy link
Collaborator

Krucksy commented Apr 20, 2024

On /api-token-auth route, change http code 400 -> 401 if credentials are wrong
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401

Looks what is possible because, as i understand, django rest framework manage some parts and you may not change what you want

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

Successfully merging a pull request may close this issue.

2 participants