perf: revert csrf token project

pull/8873/head
ibuler 2022-09-05 13:07:20 +08:00
parent 305e9bd0ea
commit d9663036f8
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ class UserLoginContextMixin:
@method_decorator(sensitive_post_parameters(), name='dispatch')
# @method_decorator(csrf_protect, name='dispatch')
@method_decorator(csrf_protect, name='dispatch')
@method_decorator(never_cache, name='dispatch')
class UserLoginView(mixins.AuthMixin, UserLoginContextMixin, FormView):
redirect_field_name = 'next'