mirror of
https://github.com/vernu/textbee.git
synced 2026-07-30 17:07:46 -04:00
Resolve auth.service.spec.ts by keeping dev's suite and porting the password-reset lockout coverage from #238 into it. Harden the lockout from #238 while merging: - claim each attempt with an atomic findOneAndUpdate $inc, so concurrent guesses cannot all read the same count and slip past the cap - match records predating the counter, which have no attempts field - lift MAX_PASSWORD_RESET_ATTEMPTS to module scope and trim comments Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>