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

Added a request.auth check to logout to avoid false success message when no token is passed #601

Merged
merged 2 commits into from Mar 24, 2024

Conversation

UmeshanUC
Copy link
Contributor

In case of no authentication token is passed it results a fake successful message in logout. Added a check to request.auth on top of logout

Before the change, the auth_token.delete() undergoes to AnonymousUser which will not affect the current user. But it sends the success message disguising the developer.

In case of no authentication is passed it results a fake successful message in logout. Added a check to request.auth on top of logout
@iMerica iMerica merged commit 6807ea0 into iMerica:master Mar 24, 2024
3 checks passed
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.

None yet

2 participants