Skip to content

Commit

Permalink
fix: user id and totpVerified can't be changed by user
Browse files Browse the repository at this point in the history
  • Loading branch information
stonith404 committed Feb 11, 2024
1 parent f52dffd commit e663da4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/user/dto/updateOwnUser.dto.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { OmitType, PartialType } from "@nestjs/swagger";
import { PartialType, PickType } from "@nestjs/swagger";
import { UserDTO } from "./user.dto";

export class UpdateOwnUserDTO extends PartialType(
OmitType(UserDTO, ["isAdmin", "password"] as const),
PickType(UserDTO, ["username", "email"] as const)
) {}

0 comments on commit e663da4

Please sign in to comment.