mirror of
https://github.com/azaion/admin.git
synced 2026-06-21 06:51:08 +00:00
5224a1258914f9360b7e5ca4db9cccd286160749
UserService.ValidateUser calls RegisterSuccessfulLogin on a successful password verify, which resets FailedLoginCount=0 even on the MFA path (the reset happens inside ValidateUser before the MFA branch returns the step-1 token). Seeding the counter before /login was therefore a no-op — the threshold-1 seed was wiped before the wrong-TOTP request got a chance to trip the lockout. Move SetLockoutUntil to AFTER step 1 succeeds in AC1, AC2, AC7. AC7 now also genuinely exercises MfaService's own counter reset on a correct TOTP, instead of being satisfied by the password-success reset. Co-authored-by: Cursor <cursoragent@cursor.com>
Description
No description provided
Languages
C#
96.5%
Shell
2%
Dockerfile
1.4%
Batchfile
0.1%