diff options
| author | Michael Merickel <michael@merickel.org> | 2024-02-04 17:00:54 -0700 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2024-02-04 17:00:54 -0700 |
| commit | 66c6c321b267e112220cfcfd81772923e3691e77 (patch) | |
| tree | 1e7f7cffb91e99b7b5f33542c759f734d0c7c941 /docs | |
| parent | 3c61799661ea5c36ae97326574a3dc7a695ce6aa (diff) | |
| download | pyramid-66c6c321b267e112220cfcfd81772923e3691e77.tar.gz pyramid-66c6c321b267e112220cfcfd81772923e3691e77.tar.bz2 pyramid-66c6c321b267e112220cfcfd81772923e3691e77.zip | |
backport fix to authentication
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/tutorials/wiki2/src/authentication/tutorial/views/default.py | 2 |
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) |
