From 9d3fdd37a38c89c895836b1e4becf079ebc6b496 Mon Sep 17 00:00:00 2001 From: Bai Date: Fri, 19 Jul 2024 10:34:45 +0800 Subject: [PATCH] perf: user authentication supports configuration redirection --- apps/authentication/views/login.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/apps/authentication/views/login.py b/apps/authentication/views/login.py index 99131c4fb..f487f3db7 100644 --- a/apps/authentication/views/login.py +++ b/apps/authentication/views/login.py @@ -194,9 +194,6 @@ class UserLoginView(mixins.AuthMixin, UserLoginContextMixin, FormView): if self.request.GET.get("admin", 0): 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')] if not auth_types: return None