> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# password-hash-in-response

> A response returns a user record that still holds its password hash.

## What it flags

A request handler sends a user record read without a field selection, so its password hash reaches the client. Select or omit the field, or hide it on the model with `select: false`. `@Exclude()` hides it only when the response goes through a class-transformer conversion (`instanceToPlain` or `ClassSerializerInterceptor`); an instance sent directly as JSON still includes the hash.

## Configuration

Set the rule to `"off"` in `loadwise.config.json` to drop its findings:

```json theme={null}
{
  "rules": { "password-hash-in-response": "off" }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.