From 2354650b8203c3d704f2969453ee5165b85baa10 Mon Sep 17 00:00:00 2001 From: ibuler Date: Mon, 5 Sep 2022 12:47:01 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E6=9A=82=E6=97=B6=E5=8E=BB=E6=8E=89=20?= =?UTF-8?q?csrf=20token?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/authentication/views/login.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/authentication/views/login.py b/apps/authentication/views/login.py index 88f580279..a804ca353 100644 --- a/apps/authentication/views/login.py +++ b/apps/authentication/views/login.py @@ -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'