From d171961ef96277c8ca21da8c33ef170576b908ee Mon Sep 17 00:00:00 2001 From: dettlaff Date: Mon, 11 Nov 2024 21:49:51 +0400 Subject: [PATCH] fix: change name to username --- selfprivacy_api/repositories/users/kanidm_user_repository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfprivacy_api/repositories/users/kanidm_user_repository.py b/selfprivacy_api/repositories/users/kanidm_user_repository.py index e137af2..3e5f80c 100644 --- a/selfprivacy_api/repositories/users/kanidm_user_repository.py +++ b/selfprivacy_api/repositories/users/kanidm_user_repository.py @@ -70,7 +70,7 @@ class KanidmUserRepository(AbstractUserRepository): attrs = user.get("attrs", {}) user_type = UserDataUser( uuid=attrs.get("uuid", [None])[0], - name=attrs.get("name", [None])[0], + username=attrs.get("name", [None])[0], ssh_keys=["test"], # TODO displayname=attrs.get("displayname", [None])[0], email=attrs.get("mail", [None])[0],