mirror of https://github.com/jumpserver/jumpserver
perf: 暂时去掉 csrf token
parent
7ae395f7e8
commit
2354650b82
|
@ -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