Limit two-factor answers per account; keep directory accounts under the directory
- github
- github/openchronology/timeline-app
- commit
- main
- github/athanclark
Wrong answers to the two-factor step of signing in now also count per account across challenges: ten in a fifteen-minute window (oc_auth_attempts, as the sign-in failure counters are), after which codes are refused unchecked until the window ends and the account is emailed at most once a day. A passkey still answers the step meanwhile, and a password change or reset clears the count. An account that signs in only through its directory account (no password, `ldap` its only identity) can no longer set a password, link another provider or sign in with a passkey alone, so the directory stays in charge of who can sign in. GET /api/auth/account reports it as security.directory_only and the account page hides those options. Docs and OpenAPI descriptions updated. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/commit/1de89e1fc2c7e7c7efc3fa301b0d1d928207427d