Skip to content

Commit

Permalink
fix: user-password
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduard0803 committed Dec 8, 2023
1 parent 3e0a060 commit 1f2554d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gestao/web/api/user/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit 1f2554d

Please sign in to comment.