perf: 暂时去掉 csrf token

pull/8873/head
ibuler 2022-09-05 12:47:01 +08:00
parent 7ae395f7e8
commit 2354650b82
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'