Skip to content

Commit

Permalink
Drop verify after edit
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoom-Developer committed Nov 3, 2024
1 parent 03fcf88 commit 9c847ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion backend/src/application/user/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
7 changes: 1 addition & 6 deletions backend/src/interface/api/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
"""
Редактирование пользователя
Expand Down

0 comments on commit 9c847ca

Please sign in to comment.