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

NameTypeRequiredDescription
view_or_classyes

Source

server/vueda/user/decorators.py:11

Source

server/vueda/user/decorators.py

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2