From a8e143be5e91c49f2b929b279632bd5d67c3b950 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Tue, 29 Sep 2026 15:16:54 +0800 Subject: [PATCH] fix: update default authentication type to LOCAL for enabled portals --- apps/portal/serializers/portal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/portal/serializers/portal.py b/apps/portal/serializers/portal.py index 30c322a5aaa..4fd60dd7856 100644 --- a/apps/portal/serializers/portal.py +++ b/apps/portal/serializers/portal.py @@ -220,7 +220,7 @@ def get_login_profile(): "description": portal.description or "", "logo": portal.logo or "", "enable_auth": portal.enable_auth, - "authentication_type": auth_config.get("type", "password") if portal.enable_auth else "", + "authentication_type": auth_config.get("type", "LOCAL") if portal.enable_auth else "", "login_value": auth_config.get("login_value", []) if portal.enable_auth else [], "max_attempts": auth_config.get("max_attempts", 1) if portal.enable_auth else 1, "rsa_key": get_key_pair_by_sql().get("key", ""),