Skip to content

Commit

Permalink
Update chapter-13.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
nicozanf authored Jun 14, 2024
1 parent c5db505 commit d500592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/chapter-13.rst
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ The second one forces the login if needed:
@action.uses(auth.user)
def index():
user = auth.get_user()
return 'hello {first_name}'.format(**user)'
return 'hello {first_name}'.format(**user)
Here ``@action.uses(auth.user)`` tells py4web that this action requires
a logged in user and should redirect to login if no user is logged in.
Expand Down

0 comments on commit d500592

Please sign in to comment.