Email Verification, Signup Defense, and User Moderation #
Changelog #
Authentication & Email Defense #
- Added email verification and password reset flows backed by expiring, single-use tokens delivered over SMTP.
- Added multi-mode registration support covering invite-only, approval, and open signups with an automatic hourly circuit breaker.
- Added local email canonicalization, domain blocklists, mail exchanger DNS verification, and per-network, per-domain, and per-mail-server rate limits.
- Enforced stricter file, site, and cumulative storage quotas on unvouched accounts until promoted by an administrator.
Admin Panel & Moderation #
- Added a user management interface displaying accounts, join requests, hosted sites, and storage usage alongside vouch controls.
- Added account banning that records the banning administrator and timestamp, blocks sign-ins, active sessions, password resets, and email re-registration, and frees the original username using a reserved placeholder.
- Added a two-step cleanup flow requiring accounts to be banned before deleting their hosted pages, plus a clear-ban action to purge the banned record and allow the email address to register again.
Frontend & Styling #
- Added email verification, forgot-password, and reset-password pages along with a shared authentication shell and customizable authentication styles.
- Updated login and registration forms to support email addresses, registration mode hints, and bot honeypot filtering.
Infrastructure & Configuration #
- Updated container orchestration, reverse proxy routing, and startup commands to use unified domain and port configuration with automatic runtime config initialization.
- Added configuration sections for registration modes, unvouched storage quotas, SMTP delivery, and trusted email domains.
Testing #
- Added unit and integration test coverage for email defense, verification, password resets, unvouched storage limits, and user moderation with foreign key enforcement enabled.
- Resolved test suite deprecation warnings by migrating application startup and shutdown hooks to a lifespan handler and updating test client cookie handling.