cello icon indicating copy to clipboard operation
cello copied to clipboard

Fix wrong username/password be shown as session expired

Open dodo920306 opened this issue 6 months ago • 0 comments

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.

dodo920306 avatar Jun 15 '25 16:06 dodo920306