From 1f2554da4ea35e3dcb2694c4e10c60aea3b19924 Mon Sep 17 00:00:00 2001 From: Eduard0803 Date: Thu, 7 Dec 2023 23:30:45 -0300 Subject: [PATCH] fix: user-password --- gestao/web/api/user/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gestao/web/api/user/views.py b/gestao/web/api/user/views.py index 9630fc9..ce4a3fa 100644 --- a/gestao/web/api/user/views.py +++ b/gestao/web/api/user/views.py @@ -44,6 +44,9 @@ async def create_user(create_user: CreateUserDTO) -> User: create_user_dict = create_user.dict() dependents = create_user_dict.pop("dependents", []) user_id = str(uuid4()) + + create_user_dict["password"] = create_user_dict["warName"] + await User.objects.create( id=user_id, **create_user_dict, status=UserStatus.analyzing )