Commit 434bed1
committed
Filter sensitive user data from login endpoint response (Issue #698)
Exclude password hash from the user object returned in login endpoint response. This prevents credential leaks where sensitive password hashes could be extracted and potentially subjected to offline attacks.
Changes:
- Extract user object and remove password field before returning
- Ensure login response contains only non-sensitive user properties
- Prevents password hash exposure in JSON responses
Fixes #6981 parent 53f820b commit 434bed1
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
0 commit comments