backend: update convertToDTO method to explicitly ignore sensitive user fields

This commit is contained in:
juancarmore 2026-02-22 13:41:51 +01:00
parent 27d4249c57
commit 696df4a7a2

View File

@ -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;
}
}