mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 13:22:14 +00:00
A pending secret from an enrollment that was never confirmed counted as a second factor wherever a code was verified: step-up minting, the passkey enrollment re-proof, MFA disable and login completion. Anyone holding a session can create a pending secret, so a code from one proves nothing about the account owner. verifyMfaFactor now refuses both TOTP and recovery codes until totpConfirmedAt is set.