user.decorators
Overview
View decorators for user authentication concerns.
ensure_csrf_token
Wraps a view function or class-based view to ensure a CSRF token is set on the request object if the user is authenticated.
Signature
ensure_csrf_token(view_or_class)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| view_or_class | yes |
Source
server/vueda/user/decorators.py:11
Source
server/vueda/user/decorators.py