From 6156a059c234932a62e97a8c6b3bafffa815bd0f Mon Sep 17 00:00:00 2001 From: nannan00 <17491932+nannan00@users.noreply.github.com> Date: Wed, 15 Nov 2023 01:14:04 -0600 Subject: [PATCH] fix(bklogin): local user auth wrong (#1393) --- src/bk-user/bkuser/apis/login/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bk-user/bkuser/apis/login/serializers.py b/src/bk-user/bkuser/apis/login/serializers.py index 19891d21a..aec6636cf 100644 --- a/src/bk-user/bkuser/apis/login/serializers.py +++ b/src/bk-user/bkuser/apis/login/serializers.py @@ -24,7 +24,7 @@ class LocalUserCredentialAuthenticateInputSLZ(serializers.Serializer): class LocalUserCredentialAuthenticateOutputSLZ(serializers.Serializer): data_source_id = serializers.IntegerField(help_text="数据源ID") - id = serializers.IntegerField(help_text="用户ID") + id = serializers.IntegerField(help_text="用户 ID", source="user_id") username = serializers.CharField(help_text="用户名")