Fix logout logic to use POST (Django 4.1+)#185
Open
07SUJITH wants to merge 1 commit intoDjangoGirls:masterfrom
Open
Fix logout logic to use POST (Django 4.1+)#18507SUJITH wants to merge 1 commit intoDjangoGirls:masterfrom
07SUJITH wants to merge 1 commit intoDjangoGirls:masterfrom
Conversation
…Django 4.1+) Replaced logout <a> link with a POST form to comply with Django 4.1+ security policy, which disallows logout via GET request. Modified Files: - tutorial-extensions/en/authentication_authorization/README.md - tutorial-extensions/es/authentication_authorization/README.md - tutorial-extensions/fa/authentication_authorization/README.md - tutorial-extensions/ja/authentication_authorization/README.md - tutorial-extensions/co/authentication_authorization/README.md Fixes DjangoGirls#183
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue: Logout via GET is no longer allowed from Django 4.1 onwards.
🔗 Ref: Django 4.1 Release Notes – logout via GET
Fix: Updated logout links in all language versions of the tutorial to use a POST form.
Before
After
Updated Files
en/authentication_authorization/README.mdes/authentication_authorization/README.mdfa/authentication_authorization/README.mdja/authentication_authorization/README.mdco/authentication_authorization/README.mdEnsures compatibility with Django 4.1+ and maintains secure logout practice.
Fixes: #183