Implement strict validation to prevent unauthorized email status changes: - Force status to Unverified when email address changes - Only allow client to reset status to Unverified (via reset button) - Block client from upgrading status (Unverified→Verified, etc.) - All status upgrades must happen server-side via verification links This prevents attackers from: - Submitting new emails with fake "verified" status - Bypassing email verification by modifying client requests - Escalating email status without proper verification flow 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
33 KiB
33 KiB