Skip to content

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 ​

NameTypeRequiredDefaultDescription
view_or_classyes

Source ​

server/vueda/user/decorators.py:11

Source ​

server/vueda/user/decorators.py