perf: user authentication supports configuration redirection

pull/13776/head
Bai 4 months ago committed by Bryan
parent 419195895e
commit 9d3fdd37a3

@ -194,9 +194,6 @@ class UserLoginView(mixins.AuthMixin, UserLoginContextMixin, FormView):
if self.request.GET.get("admin", 0): if self.request.GET.get("admin", 0):
return None return None
if not settings.XPACK_ENABLED:
return None
auth_types = [m for m in self.get_support_auth_methods() if m.get('auto_redirect')] auth_types = [m for m in self.get_support_auth_methods() if m.get('auto_redirect')]
if not auth_types: if not auth_types:
return None return None

Loading…
Cancel
Save