From b4659cae1b4b0b0e42cd0c1b8f01ea413c86ae88 Mon Sep 17 00:00:00 2001 From: Ben Fagin Date: Wed, 18 Oct 2017 13:38:48 -0700 Subject: csrf documentation change --- docs/narr/security.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs') 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:: -- cgit v1.2.3