backend: update convertToDTO method to explicitly ignore sensitive user fields
This commit is contained in:
parent
27d4249c57
commit
696df4a7a2
@ -311,8 +311,9 @@ export class UserService {
|
||||
|
||||
// Convert user to UserDTO to remove sensitive information
|
||||
convertToDTO(user: MeetUser): MeetUserDTO {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
const { passwordHash, mustChangePassword, ...userDTO } = user;
|
||||
void passwordHash;
|
||||
void mustChangePassword;
|
||||
return userDTO;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user