Merge pull request #153 from xpack-ai/open-base

user service add update_password
This commit is contained in:
Dot.L authored and GitHub committed 2026-03-11 15:25:00 +08:00
commit 613cece94b
1 file changed
+4
@@ -48,6 +48,10 @@ class UserService:
def update_admin(self, name: str, password: str) -> Optional[User]:
"""Update admin user info"""
return self.user_repository.update_admin_user(name=name, password=password)
def update_password(self, user_id: str, password: str) -> Optional[User]:
"""Update user password"""
return self.user_repository.update_password(user_id=user_id, password=password)
def update_resource_group(self, user_id: str, group_id: str) -> Optional[User]:
"""Update user resource group"""