mirror of
https://github.com/Komediruzecki/token-circles.git
synced 2026-10-20 09:46:43 +02:00
- Passwords are hashed with PBKDF2-SHA256 at 600k iterations (OWASP current). The stored hash is self-describing (`pbkdf2$<iters>$<salt>$<hash>`) and verification reads the embedded iteration count, so a future change to the cost never invalidates existing hashes and needs no data migration. - Turnstile no longer fails open on a misconfigured deploy: when TURNSTILE_SECRET is unset, verification passes only in local development (APP_ENV=development); in any deployed environment it fails closed and logs a warning, so a forgotten secret can't silently drop the CAPTCHA. The app has no existing users, so there is no legacy password data to migrate: the earlier re-hash-on-login path (and its 100k-hash handling) is intentionally omitted rather than carried as dead migration code.