summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2024-02-04 17:00:54 -0700
committerMichael Merickel <michael@merickel.org>2024-02-04 17:00:54 -0700
commit66c6c321b267e112220cfcfd81772923e3691e77 (patch)
tree1e7f7cffb91e99b7b5f33542c759f734d0c7c941
parent3c61799661ea5c36ae97326574a3dc7a695ce6aa (diff)
downloadpyramid-66c6c321b267e112220cfcfd81772923e3691e77.tar.gz
pyramid-66c6c321b267e112220cfcfd81772923e3691e77.tar.bz2
pyramid-66c6c321b267e112220cfcfd81772923e3691e77.zip
backport fix to authentication
-rw-r--r--docs/tutorials/wiki2/src/authentication/tutorial/views/default.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/tutorials/wiki2/src/authentication/tutorial/views/default.py b/docs/tutorials/wiki2/src/authentication/tutorial/views/default.py
index 50ce361cd..bf37875f4 100644
--- a/docs/tutorials/wiki2/src/authentication/tutorial/views/default.py
+++ b/docs/tutorials/wiki2/src/authentication/tutorial/views/default.py
@@ -81,7 +81,7 @@ def add_page(request):
return HTTPSeeOther(location=next_url)
if request.method == 'POST':
body = request.params['body']
- page = models.Page(name=pagename, data=body, creator=user)
+ page = models.Page(name=pagename, data=body, creator=request.identity)
request.dbsession.add(page)
next_url = request.route_url('view_page', pagename=pagename)
return HTTPSeeOther(location=next_url)