Enable CSRF protection by default
authorMagnus Hagander <magnus@hagander.net>
Mon, 5 Nov 2012 13:10:39 +0000 (14:10 +0100)
committerMagnus Hagander <magnus@hagander.net>
Mon, 5 Nov 2012 13:10:39 +0000 (14:10 +0100)
commitf6fd1f2e97331cc5ae1d44c9103e20d9a8f31729
tree489c48eb2160e753ea7b2df21f73a5b204294ce9
parenta64835ef93c3207ed8a195ea97a419efca950f4d
Enable CSRF protection by default

Most of these forms look pretty benign, but the user profile form, which
includes an SSH key field, certainly needs to be protected.

The survey form is unprotected because it's served over insecure HTTP
and the Varnish proxy strips cookies, which is required by the builtin
CSRF protection.

Marti Raudsepp
pgweb/account/views.py
pgweb/settings.py
pgweb/survey/views.py
templates/account/userprofileform.html
templates/base/form.html
templates/core/admin_mergeorg.html
templates/core/admin_purge.html
templates/core/community.html