summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBen Fagin <blouis@unquietcode.com>2017-10-18 13:38:48 -0700
committerBenjamin Fagin <bfagin@fabricgenomics.com>2017-10-18 13:41:33 -0700
commitb4659cae1b4b0b0e42cd0c1b8f01ea413c86ae88 (patch)
treeaf8ad211494ad04b6c3ec11336d74b4065c9ca86 /docs
parentdba0b43c4c8e848a22be38e863219dd512bf992b (diff)
downloadpyramid-b4659cae1b4b0b0e42cd0c1b8f01ea413c86ae88.tar.gz
pyramid-b4659cae1b4b0b0e42cd0c1b8f01ea413c86ae88.tar.bz2
pyramid-b4659cae1b4b0b0e42cd0c1b8f01ea413c86ae88.zip
csrf documentation change
Diffstat (limited to 'docs')
-rw-r--r--docs/narr/security.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/narr/security.rst b/docs/narr/security.rst
index 3a6bfa5e5..0265152fa 100644
--- a/docs/narr/security.rst
+++ b/docs/narr/security.rst
@@ -874,8 +874,8 @@ the user, and returns the token.
.. code-block:: python
- from pyramid.csrf import get_csrf_token
- token = new_csrf_token()
+ from pyramid.csrf import new_csrf_token
+ token = new_csrf_token(request)
.. note::