Skip to content

Commit 552224b

Browse files
Apply suggestions from code review
Co-authored-by: Maurits van Rees <[email protected]>
1 parent e8a1370 commit 552224b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/classic-ui/csrf.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Usage example:
5353

5454
```python
5555
from plone.protect import CheckAuthenticator
56-
from plone.protect import protec
56+
from plone.protect import protect
5757

5858
@protect(CheckAuthenticator)
5959
def write_to_api_or_service(self):
@@ -89,7 +89,7 @@ To pass a token you need either to:
8989
To add a token as an HTTP GET parameter to a link in a template, you can utilize the authenticator view:
9090

9191
```html
92-
<tal:authenticator tal:define="authenticator context/@@authenticator">
92+
<tal:authenticator tal:define="token context/@@authenticator/token">
9393
<a href="${python:context.absolute_url()}/myprotected_view?_authenticator=${token}" />
9494
</tal:authenticator>
9595
```

0 commit comments

Comments
 (0)