summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2016-04-10 20:51:23 -0500
committerMichael Merickel <michael@merickel.org>2016-04-10 22:12:38 -0500
commit15b97dc81c8bcdc039f8f2293f85812f68a076da (patch)
tree9b175d678875dd39da592a1ae5bc9e26deedc196 /docs
parent6b35eb6ca3b271e2943d37307c925c5733e082d9 (diff)
downloadpyramid-15b97dc81c8bcdc039f8f2293f85812f68a076da.tar.gz
pyramid-15b97dc81c8bcdc039f8f2293f85812f68a076da.tar.bz2
pyramid-15b97dc81c8bcdc039f8f2293f85812f68a076da.zip
deprecate the check_csrf predicate
Diffstat (limited to 'docs')
-rw-r--r--docs/narr/sessions.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/narr/sessions.rst b/docs/narr/sessions.rst
index 3baed1cb8..4e8f6db88 100644
--- a/docs/narr/sessions.rst
+++ b/docs/narr/sessions.rst
@@ -430,6 +430,10 @@ resposne being sent to the client.
Checking CSRF Tokens with a View Predicate
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+.. deprecated:: 1.7
+ Use the ``require_csrf`` option or read :ref:`auto_csrf_checking` instead
+ to have :class:`pyramid.exceptions.BadCSRFToken` exceptions raised.
+
A convenient way to require a valid CSRF token for a particular view is to
include ``check_csrf=True`` as a view predicate. See
:meth:`pyramid.config.Configurator.add_view`.