-
Notifications
You must be signed in to change notification settings - Fork 671
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 response message when token black listed. #800
base: master
Are you sure you want to change the base?
add response message when token black listed. #800
Conversation
for more information, see https://pre-commit.ci
…token' into add-return-message-in-blacklist-token # Conflicts: # rest_framework_simplejwt/views.py
for more information, see https://pre-commit.ci
rest_framework_simplejwt/views.py
Outdated
serializer_data = response.data | ||
serializer_data['Token detail'] = 'Token blacklisted' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be changed to match a descriptive message such as that in the test, Token detail
should be message
.
Can you send in a fix?
serializer_data['message'] = 'Token blacklisted'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi thanks for your attention, sure as soon as possible
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you for this patch @amirdjango, just found out the changed had been effected in a newer commit, and had revised my review 🚀
rest_framework_simplejwt/views.py
Outdated
@@ -119,7 +119,7 @@ class TokenBlacklistView(TokenViewBase): | |||
def post(self, request: Request, *args, **kwargs) -> Response: | |||
response = super().post(request, *args, **kwargs) | |||
serializer_data = response.data | |||
serializer_data['Token detail'] = 'Token blacklisted' | |||
serializer_data['message'] = 'Token blacklisted' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right! LGTM!
Just did a bisect on the failing pipeline, it so happen that two tests are breaking
Since the requirements had grown, I think we should revisit these tests |
No description provided.