Pavlo Kapyshin
2015-01-07 47e85294779814f14e02327eb4d378197bbaeb29
Provide a ref to check_csrf_token
1 files modified
2 ■■■ changed files
docs/narr/sessions.rst 2 ●●● patch | view | raw | blame | history
docs/narr/sessions.rst
@@ -380,7 +380,7 @@
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In request handling code, you can check the presence and validity of a CSRF
token with ``pyramid.session.check_csrf_token(request)``. If the token is
token with :func:`pyramid.session.check_csrf_token`. If the token is
valid, it will return ``True``, otherwise it will raise ``HTTPBadRequest``.
Optionally, you can specify ``raises=False`` to have the check return ``False``
instead of raising an exception.