Skip to content

Conversation

@dodo920306
Copy link
Contributor

According to rest_framework/views.py of django-rest-framework, AuthenticationFailed is actaully be handled as 401 not 400.

This commit moves login failure handler from 400 to 401, so that the dashboard can show the right message.

As for 400 errors, they will be handled as general exceptions.

According to rest_framework/views.py of django-rest-framework, AuthenticationFailed is
actaully be handled as 401 not 400.

This commit moves login failure handler from 400 to 401, so that the dashboard can show
the right message.

As for 400 errors, they will be handled as general exceptions.

Signed-off-by: dodo920306 <[email protected]>
@yeasy yeasy merged commit 8860a28 into hyperledger-cello:main Jun 29, 2025
3 checks passed
@dodo920306 dodo920306 deleted the fix/wrong-username-or-password-is-confused-with-session-expire branch June 30, 2025 01:05
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 this pull request may close these issues.

3 participants