Skip to content

Commit 0cd0657

Browse files
committed
fix: update default authentication type to LOCAL for enabled portals
1 parent 3f669da commit 0cd0657

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/portal/serializers/portal.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def get_login_profile():
220220
"description": portal.description or "",
221221
"logo": portal.logo or "",
222222
"enable_auth": portal.enable_auth,
223-
"authentication_type": auth_config.get("type", "password") if portal.enable_auth else "",
223+
"authentication_type": auth_config.get("type", "LOCAL") if portal.enable_auth else "",
224224
"login_value": auth_config.get("login_value", []) if portal.enable_auth else [],
225225
"max_attempts": auth_config.get("max_attempts", 1) if portal.enable_auth else 1,
226226
"rsa_key": get_key_pair_by_sql().get("key", ""),

0 commit comments

Comments
 (0)