Commit ea2d990
committed
test(users): seed tokens before PII-leak assertion to make regression meaningful
The previous assertion would pass vacuously when resetPasswordToken and
emailVerificationToken are absent on the user. Seed both fields via
updateById before the admin GET so the test proves the leak is actually
blocked, not just that the fields were never present.
Addresses: #3731 (comment)...1 parent 7f67d8d commit ea2d990
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
236 | 248 | | |
237 | 249 | | |
238 | 250 | | |
| |||
0 commit comments