summaryrefslogtreecommitdiff
path: root/docs/tutorials
diff options
context:
space:
mode:
Diffstat (limited to 'docs/tutorials')
-rw-r--r--docs/tutorials/wiki2/authentication.rst2
-rw-r--r--docs/tutorials/wiki2/src/authentication/tutorial/security.py1
2 files changed, 1 insertions, 2 deletions
diff --git a/docs/tutorials/wiki2/authentication.rst b/docs/tutorials/wiki2/authentication.rst
index c33ed5138..0b5e71099 100644
--- a/docs/tutorials/wiki2/authentication.rst
+++ b/docs/tutorials/wiki2/authentication.rst
@@ -38,7 +38,7 @@ Create a new file ``tutorial/security.py``:
.. literalinclude:: src/authentication/tutorial/security.py
:linenos:
- :emphasize-lines: 9,14,28
+ :emphasize-lines: 9,14,21-27
:language: python
Here we've defined:
diff --git a/docs/tutorials/wiki2/src/authentication/tutorial/security.py b/docs/tutorials/wiki2/src/authentication/tutorial/security.py
index 24035c8b9..8ea3858d2 100644
--- a/docs/tutorials/wiki2/src/authentication/tutorial/security.py
+++ b/docs/tutorials/wiki2/src/authentication/tutorial/security.py
@@ -22,7 +22,6 @@ def includeme(config):
settings['auth.secret'],
hashalg='sha512',
)
-
config.set_authentication_policy(authn_policy)
config.set_authorization_policy(ACLAuthorizationPolicy())
config.add_request_method(get_user, 'user', reify=True)