From 286a7a3ee8705b28fb82252daa37896d63ae6741 Mon Sep 17 00:00:00 2001 From: Michael Merickel Date: Sun, 4 Feb 2024 16:14:01 -0700 Subject: update authentication chapter --- docs/tutorials/wiki2/authentication.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs/tutorials/wiki2/authentication.rst') diff --git a/docs/tutorials/wiki2/authentication.rst b/docs/tutorials/wiki2/authentication.rst index e8a770491..dba10f4a0 100644 --- a/docs/tutorials/wiki2/authentication.rst +++ b/docs/tutorials/wiki2/authentication.rst @@ -131,9 +131,9 @@ Insert the highlighted line. In the same file, now edit the ``edit_page`` view function: .. literalinclude:: src/authentication/tutorial/views/default.py - :lines: 44-59 + :lines: 49-68 :lineno-match: - :emphasize-lines: 5-7 + :emphasize-lines: 9-11 :language: python Only the highlighted lines need to be changed. @@ -144,9 +144,9 @@ If the user either is not logged in or the user is not the page's creator In the same file, now edit the ``add_page`` view function: .. literalinclude:: src/authentication/tutorial/views/default.py - :lines: 61- + :lines: 70- :lineno-match: - :emphasize-lines: 3-5,13 + :emphasize-lines: 3-5,15 :language: python Only the highlighted lines need to be changed. -- cgit v1.2.3