Commit 2ba9ade
feat: add password history cleanup and configuration
- Add historyCount field with @value annotation for configuration
- Implement cleanUpPasswordHistory() method to remove old password entries
- Automatically clean up entries beyond configured history count after saving
- Add password history tracking to changeUserPassword() method
- Prevent database bloat by limiting stored password history entries
This ensures password history doesn't grow unbounded and maintains
only the configured number of recent passwords for reuse checking.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent a87922e commit 2ba9ade
1 file changed
Lines changed: 22 additions & 1 deletion
Lines changed: 22 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
230 | 233 | | |
231 | 234 | | |
232 | 235 | | |
| |||
294 | 297 | | |
295 | 298 | | |
296 | 299 | | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
297 | 316 | | |
298 | 317 | | |
299 | 318 | | |
| |||
395 | 414 | | |
396 | 415 | | |
397 | 416 | | |
398 | | - | |
| 417 | + | |
| 418 | + | |
399 | 419 | | |
| 420 | + | |
400 | 421 | | |
401 | 422 | | |
402 | 423 | | |
| |||
0 commit comments