mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-24 14:02:01 +00:00
perf: revert csrf token project
This commit is contained in:
parent
305e9bd0ea
commit
d9663036f8
@ -147,7 +147,7 @@ class UserLoginContextMixin:
|
|||||||
|
|
||||||
|
|
||||||
@method_decorator(sensitive_post_parameters(), name='dispatch')
|
@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')
|
@method_decorator(never_cache, name='dispatch')
|
||||||
class UserLoginView(mixins.AuthMixin, UserLoginContextMixin, FormView):
|
class UserLoginView(mixins.AuthMixin, UserLoginContextMixin, FormView):
|
||||||
redirect_field_name = 'next'
|
redirect_field_name = 'next'
|
||||||
|
Loading…
Reference in New Issue
Block a user