summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Piercy <web@stevepiercy.com>2017-10-19 14:39:17 +0200
committerGitHub <noreply@github.com>2017-10-19 14:39:17 +0200
commit6b234227d5da6294c51d476225472f5370ba0af5 (patch)
treeaf8ad211494ad04b6c3ec11336d74b4065c9ca86
parentdba0b43c4c8e848a22be38e863219dd512bf992b (diff)
parentb4659cae1b4b0b0e42cd0c1b8f01ea413c86ae88 (diff)
downloadpyramid-6b234227d5da6294c51d476225472f5370ba0af5.tar.gz
pyramid-6b234227d5da6294c51d476225472f5370ba0af5.tar.bz2
pyramid-6b234227d5da6294c51d476225472f5370ba0af5.zip
Merge pull request #3177 from UnquietCode/patch-1
csrf documentation change
-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::