Merge v4 to dev

This commit is contained in:
Bai
2024-06-24 15:43:40 +08:00
741 changed files with 27595 additions and 34433 deletions

View File

@@ -203,6 +203,9 @@ 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