Fixed #897 by only accessing request.POST in the middleware when we're pr #924

Merged
merged 1 commit into from Aug 4, 2011

Conversation

Projects
None yet
2 participants
Collaborator

ojii commented Aug 4, 2011

Fixed #897 by only accessing request.POST in the middleware when we're pretty sure the POST is for the toolbar (login)

Jonas Obrist
Fixed #897 by only accessing request.POST in the middleware when we'…
…re pretty sure the POST is for the toolbar (login)
@@ -1,5 +1,5 @@
{% load i18n %}
-<form action="." method="post" id="cms_toolbar-item_login" class="cms_toolbar-item{% if auth_error %} cms_toolbar_error{% endif %}">
+<form action="?cms-toolbar-login=1" method="post" id="cms_toolbar-item_login" class="cms_toolbar-item{% if auth_error %} cms_toolbar_error{% endif %}">
@chrisglass

chrisglass Aug 4, 2011

Contributor

Not the most elegant fix - but it works

chrisglass added a commit that referenced this pull request Aug 4, 2011

Merge pull request #924 from ojii/issue-897
Fixed #897 by only accessing request.POST in the middleware when we're pr

@chrisglass chrisglass merged commit 759ddbf into divio:develop Aug 4, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment