diff --git a/backend/src/application/user/service.py b/backend/src/application/user/service.py index 62b439d..462d354 100644 --- a/backend/src/application/user/service.py +++ b/backend/src/application/user/service.py @@ -100,7 +100,7 @@ async def edit_user(self, user: User, data: BaseUser) -> None: "male", "literal" ]: - raise VerifyRestrictionsException + user.verify = False setattr(user, field, value) if field == "male": await self.select_focus(user) diff --git a/backend/src/interface/api/user.py b/backend/src/interface/api/user.py index e02b08c..71e9982 100644 --- a/backend/src/interface/api/user.py +++ b/backend/src/interface/api/user.py @@ -49,12 +49,7 @@ async def register_user( return user -@router.patch( - "", - responses = { - 403: {"description": "Verify can not change name, surname, literal and male (3002)"} - } -) +@router.patch() async def edit_user(data: PatchUser, user: User = Depends(get_user)) -> FullUserDTO: """ Редактирование пользователя