From d9663036f8565e646abebce4e33cd6d84af8c501 Mon Sep 17 00:00:00 2001 From: ibuler Date: Mon, 5 Sep 2022 13:07:20 +0800 Subject: [PATCH] perf: revert csrf token project --- 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 a804ca353..88f580279 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'